-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
A-runtimeArea - 运行时相关Area - 运行时相关F-reactFramework - ReactFramework - ReactT-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.xbugSomething isn't workingSomething isn't working
Description
请先确认
- 我已搜索并确定这个提交不是重复的
Taro 版本
v4
相关领域
运行时
使用框架
React
相关平台
- 所有平台
- Web 端(H5)
- 移动端(React-Native)
- 鸿蒙(Harmony)
- 鸿蒙容器(Harmony Hybrid)
- ASCF 元服务
- 快应用(QuickApp)
- 所有小程序
- 微信小程序
- 企业微信小程序
- 京东小程序
- 百度小程序
- 支付宝小程序
- 支付宝 IOT 小程序
- 头条小程序
- QQ 小程序
- 钉钉小程序
- 飞书小程序
- 快手小程序
小程序基础库版本
3.9.3
问题描述
使用了nutui后,npm run dev:weapp 小程序报错打不开页面,但是 npm run build:weapp 就正常

复现链接
https://gitee.com/nieyunliang/smart_material_driver.git
复现步骤
npm 安装包完成后 npm run dev:weapp,然后小程序打开白板,并且控制台报错,但是通过npm run build:weapp就可以正常使用
环境信息
Taro CLI 4.1.6 environment info:
System:
OS: Windows 11 10.0.26100
Binaries:
Node: 22.18.0 - ~\Application\node\versions\22.18.0\node.EXE
npm: 10.9.3 - ~\Application\node\versions\22.18.0\npm.CMD
npmPackages:
@tarojs/cli: 4.1.6 => 4.1.6
@tarojs/components: 4.1.6 => 4.1.6
@tarojs/helper: 4.1.6 => 4.1.6
@tarojs/plugin-framework-react: 4.1.6 => 4.1.6
@tarojs/plugin-html: ^4.1.6 => 4.1.6
@tarojs/plugin-platform-alipay: 4.1.6 => 4.1.6
@tarojs/plugin-platform-h5: 4.1.6 => 4.1.6
@tarojs/plugin-platform-harmony-hybrid: 4.1.6 => 4.1.6
@tarojs/plugin-platform-jd: 4.1.6 => 4.1.6
@tarojs/plugin-platform-qq: 4.1.6 => 4.1.6
@tarojs/plugin-platform-swan: 4.1.6 => 4.1.6
@tarojs/plugin-platform-tt: 4.1.6 => 4.1.6
@tarojs/plugin-platform-weapp: 4.1.6 => 4.1.6
@tarojs/react: 4.1.6 => 4.1.6
@tarojs/runtime: 4.1.6 => 4.1.6
@tarojs/shared: 4.1.6 => 4.1.6
@tarojs/taro: 4.1.6 => 4.1.6
@tarojs/taro-loader: 4.1.6 => 4.1.6
@tarojs/webpack5-runner: 4.1.6 => 4.1.6
babel-preset-taro: 4.1.6 => 4.1.6
eslint-config-taro: 4.1.6 => 4.1.6
react: ^18.0.0 => 18.3.1
开源贡献
- 我愿意修复这个错误。请参考 (贡献指南)
Metadata
Metadata
Assignees
Labels
A-runtimeArea - 运行时相关Area - 运行时相关F-reactFramework - ReactFramework - ReactT-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.xbugSomething isn't workingSomething isn't working
Type
Projects
Status
Done