taro自己写的程序编译正常,但是从网上下载的taro项目却发现一个都编译不过。
编译命令npm run dev:weapp
错误如下:
> Miai@1.0.0 dev:weapp /opt/Miai
> npm run build:weapp -- --watch
> Miai@1.0.0 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
作者:帅得不敢出门
阅读(3016) | 评论(0) | 转发(0) |