我尝试运行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>