我安装了css-loader和vue-style loader。然后决定我不需要它们,并立即将其卸载。从那以后,Laravel(Mix)开始在npm run whatever
Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
at Chunk.get (D:\Host\clients\reservations\node_modules\webpack\lib\Chunk.js:460:9)
at D:\Host\clients\reservations\node_modules\extract-text-webpack-plugin\dist\index.js:176:48
at Array.forEach (<anonymous>)
at D:\Host\clients\reservations\node_modules\extract-text-webpack-plugin\dist\index.js:171:18
at AsyncSeriesHook.eval [as callAsync] (eval at create (D:\Host\clients\reservations\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:12:1)
at AsyncSeriesHook.lazyCompileHook (D:\Host\clients\reservations\node_modules\tapable\lib\Hook.js:154:20)
at Compilation.seal (D:\Host\clients\reservations\node_modules\webpack\lib\Compilation.js:881:27)
at hooks.make.callAsync.err (D:\Host\clients\reservations\node_modules\webpack\lib\Compiler.js:464:17)
at _err0 (eval at create (D:\Host\clients\reservations\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:11:1)
at _addModuleChain (D:\Host\clients\reservations\node_modules\webpack\lib\Compilation.js:749:12)
at processModuleDependencies.err (D:\Host\clients\reservations\node_modules\webpack\lib\Compilation.js:688:9)
at process._tickCallback (internal/process/next_tick.js:61:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ development: `cross-env NODE_ENV=development
node_modules/webpack/bin/webpack.js --progress --hide-modules -- config=node_modules/laravel-mix/setup/webpack.config.js "--watch"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
我再次运行npm install
,清除了缓存,做了很多普通的事情。还尝试重新安装此插件。始终存在相同的错误。
我的package.json供参考:
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"axios": "^0.18",
"bootstrap": "^4.0.0",
"cross-env": "^5.1",
"jquery": "^3.2",
"laravel-mix": "^2.0",
"lodash": "^4.17.5",
"popper.js": "^1.12",
"vue": "^2.5.7",
"webpack": "^4.0.0"
},
"dependencies": {
"extract-text-webpack-plugin": "^3.0.2",
"npm": "^6.1.0",
"webpack-cli": "^3.1.2"
}
}
dependencies
块项在那里,因为我在尝试其他操作时手动安装了它们。