上面主要是说react
解决办法:webpack
npm run eject // 显示全部的依赖项 复制代码
若是运行出现相似这样的报错git
Are you sure you want to eject? This action is permanent web
只要 git 操做一波就能够了npm
git
git init git add . git commit -m 'init' 复制代码
再次执行 npm run ejectbash
npm run eject
完美解决app