-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Open
Labels
F-reactFramework - ReactFramework - ReactT-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.x
Description
相关平台
微信小程序
复现仓库
https://github.com/xyfll7/taro_bug_0.git
小程序基础库: 3.5.1
使用框架: React
复现步骤
npm run dev:weapp 即可
期望结果
能够正确识别这是一个小程序插件:
usingComponents: {
"image-cropper": "plugin://xyfsPlugin/image-cropper"
},
实际结果
Tips:
- 预览模式生成的文件较大,设置 NODE_ENV 为 production 可以开启压缩。
Example:
$ set NODE_ENV=production && taro build --type weapp --watch
08:42:30 [taro] 找不到页面 pages/index/index 依赖的自定义组件:D:\Users\l7\Documents\test\taro_bug_0\src\pages\index\plugin:\xyfsPlugin\image-cropper
vite v4.5.3 building for production...
watching for file changes...
build started...
✓ 102 modules transformed.
环境信息
👽 Taro v4.0.3
Taro CLI 4.0.3 environment info:
System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.16.0 - D:\Program Files\nodejs\node.EXE
npm: 10.8.1 - D:\Program Files\nodejs\npm.CMD
npmPackages:
@tarojs/cli: 4.0.3 => 4.0.3
@tarojs/components: 4.0.3 => 4.0.3
@tarojs/helper: 4.0.3 => 4.0.3
@tarojs/plugin-framework-react: 4.0.3 => 4.0.3
@tarojs/plugin-platform-alipay: 4.0.3 => 4.0.3
@tarojs/plugin-platform-h5: 4.0.3 => 4.0.3
@tarojs/plugin-platform-harmony-hybrid: 4.0.3 => 4.0.3
@tarojs/plugin-platform-jd: 4.0.3 => 4.0.3
@tarojs/plugin-platform-qq: 4.0.3 => 4.0.3
@tarojs/plugin-platform-swan: 4.0.3 => 4.0.3
@tarojs/plugin-platform-tt: 4.0.3 => 4.0.3
@tarojs/plugin-platform-weapp: 4.0.3 => 4.0.3
@tarojs/react: 4.0.3 => 4.0.3
@tarojs/runtime: 4.0.3 => 4.0.3
@tarojs/shared: 4.0.3 => 4.0.3
@tarojs/taro: 4.0.3 => 4.0.3
@tarojs/vite-runner: 4.0.3 => 4.0.3
babel-preset-taro: 4.0.3 => 4.0.3
eslint-config-taro: 4.0.3 => 4.0.3
react: ^18.0.0 => 18.3.1
PaperStrike
Metadata
Metadata
Assignees
Labels
F-reactFramework - ReactFramework - ReactT-weappTarget - 编译到微信小程序Target - 编译到微信小程序V-4Version - 4.xVersion - 4.x
Type
Projects
Status
Todo