Closed achillesz closed 5 years ago
This issue as been imported as question since it does not respect koa-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/koa-template/issues/c39.
remove all in "./node_modules/backpack-core/package.json dependencies", and paste this:
"dependencies": {
"@babel/core": "^7.1.2",
"babel-loader": "^8.0.2",
"babel-preset-backpack": "^0.8.2",
"cross-spawn": "^5.0.1",
"friendly-errors-webpack-plugin": "^1.7.0",
"json-loader": "^0.5.7",
"nodemon": "^1.18.7",
"ramda": "^0.23.0",
"source-map-support": "^0.4.15",
"webpack": "^4.23.1",
"webpack-node-externals": "^1.7.2"
},
then delete backpack-core node_modules.
then npm install
and may be you can get this error: webpack NoErrorPlugin
resolve this error, you need open backpack-core/config/webpack.config.js and change last line:
new webpack.NoEmitOnErrorsPlugin()
npm run dev
ERROR Failed to compile with 1 errors 18:43:53
error in ./server/index.js
Module build failed: Error: Plugin/Preset files are not allowed to export objects , only functions. In /Users/achilles/yilong/nuxt-learn/node_modules/backpack-core /babel.js