相关平台
微信小程序
小程序基础库: 2.26.0
使用框架: React
复现步骤
用taro项目打成npm包,在另外一个完整的taro项目中,使用npm安装,并且通过copy功能拷贝到dist目录。
然后配置微信小程序独立分包,本地用dev模式启动报错如下:
Conflict: Multiple assets emit different content to the same filename base.wxml
期望结果
不要报错
实际结果
✖ Errors:
Error: Conflict: Multiple assets emit different content to the same filename base.wxml
at runMicrotasks ()
→ Watching... [10/25/2023, 4:41:45 PM]
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "[object Array]".] {
code: 'ERR_UNHANDLED_REJECTION'
}
error Command failed with exit code 1.
环境信息
Taro v3.6.17
Taro CLI 3.6.17 environment info:
System:
OS: macOS 12.2
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
npmPackages:
@tarojs/cli: 3.6.17 => 3.6.17
@tarojs/components: 3.6.17 => 3.6.17
@tarojs/helper: 3.6.17 => 3.6.17
@tarojs/plugin-framework-react: 3.6.17 => 3.6.17
@tarojs/plugin-platform-alipay: 3.6.17 => 3.6.17
@tarojs/plugin-platform-h5: 3.6.17 => 3.6.17
@tarojs/plugin-platform-jd: 3.6.17 => 3.6.17
@tarojs/plugin-platform-qq: 3.6.17 => 3.6.17
@tarojs/plugin-platform-swan: 3.6.17 => 3.6.17
@tarojs/plugin-platform-tt: 3.6.17 => 3.6.17
@tarojs/plugin-platform-weapp: 3.6.17 => 3.6.17
@tarojs/react: 3.6.17 => 3.6.17
@tarojs/runtime: 3.6.17 => 3.6.17
@tarojs/shared: 3.6.17 => 3.6.17
@tarojs/taro: 3.6.17 => 3.6.17
@tarojs/taro-loader: 3.6.17 => 3.6.17
@tarojs/webpack5-runner: 3.6.17 => 3.6.17
babel-preset-taro: 3.6.17 => 3.6.17
eslint-config-taro: 3.6.17 => 3.6.17
react: ^18.0.0 => 18.2.0
1条答案
按热度按时间m1m5dgzv1#
@Chen-jj 麻烦帮忙看下