相关平台
React Native
使用框架: React
复现步骤
yarn run taro build --type rn
出现错误
D:\work\gc-nativeapp-system\taro-rn-h5-mini-ts\node_modules\metro-hermes-compiler\src\emhermesc.js:77
throw ex;
^
RuntimeError: abort(SyntaxError: src\app.scss: Call retries were exceeded). Build with -s ASSERTIONS=1 for more info.
at process.abort (D:\work\gc-nativeapp-system\taro-rn-h5-mini-ts\node_modules\metro-hermes-compiler\src\emhermesc.js:402:15)
at process.emit (node:events:525:35)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at processTicksAndRejections (node:internal/process/task_queues:96:32)
Node.js v18.7.0
error Command failed with exit code 7.
期望结果
正常build
实际结果
D:\work\gc-nativeapp-system\taro-rn-h5-mini-ts\node_modules\metro-hermes-compiler\src\emhermesc.js:77
throw ex;
^
RuntimeError: abort(SyntaxError: src\app.scss: Call retries were exceeded). Build with -s ASSERTIONS=1 for more info.
at process.abort (D:\work\gc-nativeapp-system\taro-rn-h5-mini-ts\node_modules\metro-hermes-compiler\src\emhermesc.js:402:15)
at process.emit (node:events:525:35)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at processTicksAndRejections (node:internal/process/task_queues:96:32)
Node.js v18.7.0
error Command failed with exit code 7.
环境信息
👽 Taro v3.5.2
Taro CLI 3.5.2 environment info:
System:
OS: Windows 10
Binaries:
Node: 18.7.0 - D:\NODE\node.EXE
Yarn: 1.22.19 - C:\Users\liuyusen\AppData\Roaming\npm\yarn.CMD
npm: 8.15.1 - D:\NODE\npm.CMD
9条答案
按热度按时间6mw9ycah1#
mac无此问题
9jyewag02#
是不是这个错误
h9vpoimq3#
是不是这个错误
是,我翻到之前出现过这个问题,我照着那个问题锁了下sass的版本,就不报错了。
3z6pesqy4#
可能跟此pr相关。
#12150
@shinken008
olqngx595#
是不是这个错误
是,我翻到之前出现过这个问题,我照着那个问题锁了下sass的版本,就不报错了。
锁到了哪个版本
uurity8g6#
是不是这个错误
是,我翻到之前出现过这个问题,我照着那个问题锁了下sass的版本,就不报错了。
锁到了哪个版本
1.38.0
bqujaahr7#
1.37.5 有问题?已知的在 m1 1.38.0+ 会造成另外的问题 #11983
vsnjm48y8#
#11588
ukdjmx9f9#
1.38.0 也报错 taro 3.4.13