NervJS / taro-ui

一款基于 Taro 框架开发的多端 UI 组件库
https://taro-ui.taro.zone
MIT License
4.52k stars 756 forks source link

使用 Calendar 报错 createSelectorQuery is not a function #1559

Open fengsx opened 1 year ago

fengsx commented 1 year ago

问题描述 Taro 3.5.7 使用 Taro UI 3.1.0-beta.4 的 Calendar 组件,在 h5 运行时报错 createSelectorQuery is not a function

复现步骤

  1. taro init myApp
  2. 选择 React -> Typescript -> Sass -> Webpack5 -> yarn -> gitee -> 使用 taro-ui 的模板
  3. 按照 Taro UI 文档,添加 AtCalendar 的使用
    <AtCalendar
    currentDate='2018/11/11'
    maxDate='2018/10/1'
    />
  4. yarn dev:h5
  5. 报错,如图

期望行为 正常

报错信息 image

系统信息 Taro v3.5.7

Taro CLI 3.5.7 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 14.20.0 - ~/.nvm/versions/node/v14.20.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v14.20.0/bin/yarn npm: 6.14.17 - ~/.nvm/versions/node/v14.20.0/bin/npm npmPackages: @tarojs/cli: 3.5.7 => 3.5.7 @tarojs/components: 3.5.7 => 3.5.7 @tarojs/helper: 3.5.7 => 3.5.7 @tarojs/plugin-framework-react: 3.5.7 => 3.5.7 @tarojs/plugin-platform-alipay: 3.5.7 => 3.5.7 @tarojs/plugin-platform-jd: 3.5.7 => 3.5.7 @tarojs/plugin-platform-qq: 3.5.7 => 3.5.7 @tarojs/plugin-platform-swan: 3.5.7 => 3.5.7 @tarojs/plugin-platform-tt: 3.5.7 => 3.5.7 @tarojs/plugin-platform-weapp: 3.5.7 => 3.5.7 @tarojs/react: 3.5.7 => 3.5.7 @tarojs/router: 3.5.7 => 3.5.7 @tarojs/runtime: 3.5.7 => 3.5.7 @tarojs/shared: 3.5.7 => 3.5.7 @tarojs/taro: 3.5.7 => 3.5.7 @tarojs/taro-h5: 3.5.7 => 3.5.7 @tarojs/webpack5-runner: 3.5.7 => 3.5.7 babel-preset-taro: 3.5.7 => 3.5.7 eslint-config-taro: 3.5.7 => 3.5.7 react: 16.x => 16.14.0 taro-ui: ^3.1.0-beta.4 => 3.1.0-beta.4

补充信息

taro-ui-bot[bot] commented 1 year ago

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

dream-approaching commented 1 year ago

+1 同样遇到

F8-Tortoise commented 6 months ago

解决了吗?我用h5就是这个报错,用npm run dev:weapp 微信开发者工具打开就是样式失效 请教