taro 2.2.9 新项目初始化后,编译RN报错 Cannot read property 'sassLoaderOption' of undefined
-
(node:4319) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'sassLoaderOption' of undefined
at /Users/mac/mynode/test1/node_modules/@tarojs/plugin-sass/dist/index.js:33:50
at Generator.next (<anonymous>)
at /Users/mac/mynode/test1/node_modules/@tarojs/plugin-sass/dist/index.js:8:71
at new Promise (<anonymous>)
at __awaiter (/Users/mac/mynode/test1/node_modules/@tarojs/plugin-sass/dist/index.js:4:12)
at Object.ctx.modifyWebpackChain [as fn] (/Users/mac/mynode/test1/node_modules/@tarojs/plugin-sass/dist/index.js:14:43)
at Kernel.<anonymous> (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/dist/Kernel.js:199:48)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/dist/Kernel.js:8:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/dist/Kernel.js:4:12)
at waterfall.tapPromise (/usr/local/lib/node_modules/@tarojs/cli/node_modules/@tarojs/service/dist/Kernel.js:198:33)
at Promise (eval at create (/usr/local/lib/node_modules/@tarojs/cli/node_modules/tapable/lib/HookCodeFactory.js:74:10), <anonymous>:33:17)
at new Promise (<anonymous>)
at AsyncSeriesWaterfallHook.eval [as promise] (eval at create (/usr/local/lib/node_modules/@tarojs/cli/node_modules/tapable/lib/HookCodeFactory.js:74:10), <anonymous>:4:8)
at AsyncSeriesWaterfallHook.lazyCompileHook (/usr/local/lib/node_modules/@tarojs/cli/node_modules/tapable/lib/Hook.js:154:20)
(node:4319) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 2)
(node:4319) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
-
同样遇到这个问题
-
+1 遇到同样的问题,其他平台运行没问题
-
感觉对RN支持度很差啊,taro-ui也不支持RN,选这个框架就是为了微信小程序和RN的,其他花里胡哨的没啥用啊
-
进阶指南编译配置详情有介绍在config里的index文件添加sassLoaderOption```
code_textrn: { sassLoaderOption: { implementation: require("dart-sass") } }