Questions tagged [webpack-cli]
Webpack CLI is a CLI tool for providing a flexible set of commands for custom webpack projects. Use this tag for questions related with the command-line interface for webpack. Do not use for webpack in general.
webpack-cli
87
questions
-1
votes
0
answers
18
views
TypeError: compiler.plugin is not a function. Not with ExtractTextPlugin
Please help to fix
[webpack-cli] TypeError: compiler.plugin is not a function
at ReactLoadablePlugin.apply (C:\Users\avdem\Documents\Scienturion\news-explorer-frontend\node_modules\react-loadable\lib\...
0
votes
0
answers
23
views
Error when running Webpack-CLI-bundled file that imports "prettier-plugin-java"
I am trying to use Webpack to bundle some code that runs the Prettier API to beautify code programmatically.
I have successfully bundled and ran Prettier with one of Prettier's built-in plugins. Using ...
0
votes
1
answer
357
views
Error Message: [webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema
I am working on blockchain project and whenever I try to run "npm run dapp"
I get the following error:
[webpack-cli] Invalid options object. Dev Server has been initialized using an options ...
0
votes
0
answers
80
views
TypeError: Cannot read properties of undefined (reading 'mangleWasmImports')
I'm in the process of upgrading my old node 8x project to node 18.18.0. When building a webpack angularjs app I get this error and unsure how to handle this issue. Is this a bug in webpack/webpack-cli ...
0
votes
0
answers
236
views
Webpack-cli Cannot read properties of undefined (reading 'getArguments')
I'm getting this error:
[webpack-cli] TypeError: Cannot read properties of undefined (reading 'getArguments')
at WebpackCLI.getBuiltInOptions (/Users/rafa.mora/Sites/sender_id/node_modules/webpack-...
1
vote
0
answers
515
views
Why is webpack serve throwing the error "You need to install 'webpack-dev-server' for running 'webpack serve'" while the dependency is installed?
Problem:
I am trying to start my react application by running npm run start.
This then throws the error "You need to install 'webpack-dev-server' for running 'webpack serve'" while I have ...
1
vote
1
answer
2k
views
webpack-cli TypeError ERR_INVALID_ARG_TYPE: The "path" argument must be of type string. Received an instance of Array
[webpack-cli] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an` instance of Array at new NodeError (node:internal/errors:399:5) at ...
3
votes
1
answer
2k
views
Is "this.getOptions is not a function" a bug for webpack?
I have a node.js backend project, and I use webpack to build it.
"webpack": "^4.46.0",
"webpack-cli": "^4.4.0"
it reports error like
Module build failed (from ....
1
vote
0
answers
187
views
Webpack and Webpack-cli compatibility issues
I upgraded webpack from 5.70.0 to 5.75.0 my webpack-cli is at 4.9.2
When I try to npm install my project it crashes saying:
npm ERR! notarget no matching version found for [email protected]
The ...
0
votes
1
answer
920
views
webpack-cli Error: Conflict: Multiple chunks emit assets to the same filename
I am trying to generate my own webpack config and have some problems generate a bundle.
Error: [webpack-cli] Error: Conflict: Multiple chunks emit assets to the same filename billing-dashboard-ui.js (...
3
votes
2
answers
2k
views
webpack-cli : Error: spawn Unknown system error -86 / Symfony6 / Mac M1
I have a mac with M1 chip and I wonder if the error is related to this, because on my old one I have no problem.
% npm run dev
> dev
> encore dev
Running webpack ...
[webpack-cli] ...
0
votes
1
answer
187
views
Invalid configuration object. Webpack has been initialized using a configuration object; devtool should match pattern
I am trying to implement webpack 5 with es6 syntax, but I'm coming up short even though i'm explicitly providing a devtool setting as per the documentation.
Error Message: [webpack-cli] Invalid ...
0
votes
2
answers
442
views
Vaadin 23: startup fails with "TypeError: cli.isMultipleCompiler is not a function"
I have a project with Vaadin 23.0.8 that fails to start with the error message "cli.isMultipleCompiler is not a function". It seems to be a compatibility problem with webpack-cli Version 4.9....
1
vote
1
answer
571
views
Library dotenv-webpack doesn't work with vue 3 and webpack-cli
I'm using Vue 3 and Webpack 5 and wanted to install dotenv-webpack, but I can't get it to work.
Here's full code: https://github.com/golebiewska-n/webpack5-vue3
Setup: package.json script I'm using to ...
0
votes
1
answer
647
views
Webpack unknown option --display-optimization-bailout
I upgraded from webpack 3.3.1 to webpack-cli `4.10.01
I am getting build error with --display-optimization-bailout in the command