-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
运行H5报错: _chunk_54FAVIWE_js__WEBPACK_IMPORTED_MODULE_3__.taro.createSelectorQuery is not a function #16886
Comments
import { createSelectorQuery } from '@tarojs/taro' |
我也遇到了,为什么这样写就可以了呢? |
因为window环境分隔符的差异问题,导致没有应用上转换api的babel插件 |
请问现在有什么办法使用修复后的版本, nutui的elevator受到影响了 Taro.createSelectorQuery is not a function |
@mxlt02 建议直接向 nutui 维护人员反馈 |
React + Taro UI使用AtAccordion组件报一样的错,且这个方法并不生效 但是下面的可以,在app.ts添加 import Taro from '@tarojs/taro'
import { createSelectorQuery } from '@tarojs/taro'
Taro.createSelectorQuery = createSelectorQuery |
相关平台
H5
浏览器版本: Edge 131
使用框架: React
复现步骤
npm run dev:h5
期望结果
正常打开页面,没有报错信息
实际结果
报错
环境信息
补充信息
运行微信小程序没有问题, 编译H5也成功,但是实际页面上报错;

The text was updated successfully, but these errors were encountered: