纱线建立错误:无法解析模块'promise / lib / rejection-tracking'

时间:2018-12-01 06:01:18

标签: reactjs npm webpack yarnpkg

我尝试运行yarn build并收到以下错误。纱线安装成功,我还按照其中一则文章的建议更新了webpack,但这没有帮助。还删除了node_modules和package-lock.json 我的github存储库是:https://github.com/damianjnc/reactuport.git

错误代码:

C:\Users\Concierge\Downloads\prod\reactuport2>yarn build
yarn run v1.12.3
$ node scripts/build.js
Creating an optimized production build...
Failed to compile.

Module not found: Error: Cannot resolve module 'promise/lib/rejection-tracking'
in C:\Users\Concierge\Downloads\prod\reactuport2\config

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.

C:\Users\Concierge\Downloads\prod\reactuport2> 

0 个答案:

没有答案