gpt4 book ai didi

javascript - 错误 : Chunk. 入口点 : Use Chunks. groupsIterable 并按 instanceof 入口点过滤

转载 作者:行者123 更新时间:2023-11-30 14:27:55 29 4
gpt4 key购买 nike

当我运行脚本 npm run watch 时出现此错误

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --config=node_modules/laravel-mix/setup/webpack.config.js

i 「webpack」: Watching enabled \ Building Modules (16%)C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Chunk.js:824 throw new Error( ^

Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead at Chunk.get (C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Chunk.js:824:9) at C:\xampp\htdocs\VidhiStage\node_modules\laravel-mix\node_modules\extract-text-webpack-plugin\dist\index.js:176:48 at Array.forEach () at C:\xampp\htdocs\VidhiStage\node_modules\laravel-mix\node_modules\extract-text-webpack-plugin\dist\index.js:171:18 at AsyncSeriesHook.eval [as callAsync] (eval at create (C:\xampp\htdocs\VidhiStage\node_modules\tapable\lib\HookCodeFactory.js:24:12), :12:1) at AsyncSeriesHook.lazyCompileHook [as _callAsync] (C:\xampp\htdocs\VidhiStage\node_modules\tapable\lib\Hook.js:35:21) at Compilation.seal (C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Compilation.js:1203:27) at hooks.make.callAsync.err (C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Compiler.js:547:17) at _err0 (eval at create (C:\xampp\htdocs\VidhiStage\node_modules\tapable\lib\HookCodeFactory.js:24:12), :11:1) at _addModuleChain (C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Compilation.js:1054:12) at processModuleDependencies.err (C:\xampp\htdocs\VidhiStage\node_modules\webpack\lib\Compilation.js:980:9) at process._tickCallback (internal/process/next_tick.js:172:11) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! VidhiStage@1.0.0 watch: cross-env NODE_ENV=development
node_modules/webpack/bin/webpack.js --watch --progress
--config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the VidhiStage@1.0.0 watch script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!
C:\Users\BIKI MALLIK\AppData\Roaming\npm-cache_logs\2018-08-02T08_45_14_967Z-debug.log

以下是Webpack.config.js:

const webpack = require('webpack');
module.exports = {
watch : true,
context: __dirname,
entry: {
main : "./Components/Admin/Admin.js",
},
output: {
path: __dirname+'/public/js/build',
filename : "Admin.js",
chunkFilename: 'chunk/[name].[chunkhash].js',
publicPath:'./js/build/'
},
resolve: {
alias: {
vue: 'vue/dist/vue.js',
lolly : 'quill/dist/quill.min.js'
}
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
},
{
test: /\.styl$/,
loader: 'css-loader!stylus-loader?paths=node_modules/bootstrap-stylus/stylus/',
},
{
test: /\.vue$/,
loader: 'vue-loader'
}
]
},
plugins: [
]
}

最佳答案

您的 webpack 版本可能高于 4.0.0。插件 extract-text-webpack-plugin 未修改为与 webpack > 4.0.0 兼容。所以同时使用 Webpack 4 版本。

npm install --save-dev webpack@4.0.0

关于javascript - 错误 : Chunk. 入口点 : Use Chunks. groupsIterable 并按 instanceof 入口点过滤,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51649458/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com