taro編譯錯誤UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded

taro自己寫的程序編譯正常,但是從網上下載的taro項目卻發現一個都編譯不過。

編譯命令npm  run dev:weapp 

錯誤如下:             
> [email protected] dev:weapp /opt/Miai
> npm run build:weapp -- --watch

> [email protected] build:weapp /opt/Miai
> taro build --type weapp "--watch"

👽 Taro v1.3.21

開始編譯項目 Miai
(node:28722) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
   at normalizeStringPosix (path.js:101:30)
   at Object.normalize (path.js:1211:12)
   at findWorkspaceRoot (/usr/local/lib/node_modules/@tarojs/cli/node_modules/find-yarn-workspace-root/index.js:20:22)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:455:27)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
(node:28722) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pro
mise which was not handled with .catch(). (rejection id: 1)
(node:28722) [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.

解決方法:

taro update project
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章