You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
� 编译失败.
./src/app.config.ts
Module build failed (from ./node_modules/@tarojs/mini-runner/node_modules/babel-loader/lib/index.js):
Error: Unknown option: .call$2. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
at Array.forEach (<anonymous>)
at loadPrivatePartialConfig.next (<anonymous>)
at Generator.next (<anonymous>)
at Generator.next (<anonymous>)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
相关平台
所有小程序平台
复现仓库
https://github.com/b2nil/taro-ui-vue3-demo
小程序基础库: 2.14.0
使用框架: Vue 3
复现步骤
config/index.js
中配置sassLoaderOption
:yarn build:weapp
或其他任何小程序平台的编译命令期望结果
小程序平台编译成功
实际结果
小程序编译失败,报以下错误:
环境信息
补充信息
在编译配置的
mini
或h5
字段下配置sassLoaderOption
,小程序平台均会编译失败,但 h5 平台可以编译成功。不配置
sassLoaderOption
,小程序平台则可编译成功。这个问题最坑的是,
h5
平台的配置,影响了小程序平台的编译,花了好长时间才排查到是这个配置导致的问题,/(ㄒoㄒ)/~~。The text was updated successfully, but these errors were encountered: