87 questions
0
votes
0
answers
68
views
webpack-cli TypeError: Cannot read properties of undefined (reading 'getArguments')
I am trying to deploy my application and getting this error. Locally it is working perfectly fine here is the complete stack trace:
2025-02-20T09:20:27.0519522Z > [email protected] build
...
0
votes
0
answers
127
views
Using module bundlers with Firebase: unexpected token in webpack-cli
I followed this documentation on firebase to use it with webpack: https://firebase.google.com/docs/web/module-bundling. But when I get to the last step and try to run webpack and generate the build ...
0
votes
0
answers
56
views
Unable to reference NPM package globally
webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: '/src/index.js',
output: {
path: path.resolve(__dirname, '..','..', 'public_html'...
0
votes
1
answer
773
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
128
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 ...
2
votes
1
answer
877
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
2
answers
3k
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 ...
4
votes
1
answer
4k
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
381
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
2k
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
210
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
506
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
777
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
796
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
0
votes
0
answers
3k
views
I can not import svg in react component with svgr/webpack package
I'm using @svgr/webpack package for loading svg and importing a svg in my react component like as this:
import { close } from '../../../resources/icons/icon-close.svg';
This is my webpack.config file....
-1
votes
1
answer
799
views
Webpack configuration problem with module.exports entry
I'm trying to configurate webpack but I stuck because of this error. I think the problem is with entry. But when i try to add it without path: like in tutorial i get "(property) path: path....
4
votes
1
answer
5k
views
@ngtools/webpack AngularWebpackPlugin error when going from Angular 12 to Angular 13
I have a large Angular 12 application that uses Webpack 5.55.1, not the Angular CLI. When I tried to upgrade from Angular 12.2.16 and @ngtools/webpack 12.0.5 to Angular 13.3.11 and @ngtools/webpack ...
5
votes
0
answers
28k
views
How to Update Webpack
Here is how you update your webpack-cli for anyone else who was curious. This issue arose when I was creating a new JHipster project, and was having issues with npm start.
First, check your version of ...
3
votes
1
answer
954
views
Kotlin multiplatform gradle task "jsRun" gives error "[webpack-cli] TypeError: cli.isMultipleCompiler is not a function"
I have a Kotlin multiplatform project with JVM and JS. When executing jsRun gradle task to start the webpack server, it fails with the following error:
Waiting for changes to input files of tasks... (...
21
votes
13
answers
33k
views
How to solve [webpack-cli] TypeError: cli.isMultipleCompiler is not a function
I got stock with with error that I dont understand, I have tried a lot of things like reinstalling all the dependencies but it does not work any idea? Here is the error prompt:
No production ...
3
votes
0
answers
1k
views
Webpack when run in terminal it gives an error `Error: Unknown option '--module-bind'`
I wanted to run Webpack using npm run build but it gives an error in the Terminal
as bellow
[webpack-cli] Error: Unknown option '--module-bind'
[webpack-cli] Run 'webpack --help' to see available ...
13
votes
4
answers
31k
views
Dev Server has been initialized using an options object that does not match the API schema. unknown property 'publicPath'
I am using webpack: 5.71.0
webpack-cli: 4.9.2
webpack-dev-server 4.8.1
in my webpack.config.js
const path = require('path');
const webpack = require('webpack');
module.exports = {
entry: './src/...
0
votes
0
answers
876
views
Laravel mix error development how repair?
Hello now get this all but i have error this: How repair error?
I run command npm run dev
[webpack-cli] Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin'
Require stack:
- ...
0
votes
1
answer
1k
views
can't solve webpackcli invalid regular expression error
For my application when I'm trying to run the buildDev script from my package.json I am getting the error:
[webpack-cli] SyntaxError: Invalid regular expression: /(\p{Uppercase_Letter}+|\p{...
0
votes
1
answer
188
views
pacakge.json script no longer working after webpack upgrade
I've been asked to go through the packages our application is using and update them to the latest versions, one of these was upgrading webpack from version 3.11.0 to 5.70.0 which also meant I had to ...
6
votes
2
answers
4k
views
Webpack invalid options object when using writeToDisk
I'm trying to use webpack for my web development project, but can't figure out how to use the writeToDisk option.
Here's my webpack.config.development.js file:
const { merge } = require('webpack-...
3
votes
3
answers
39k
views
RangeError: WebAssembly.Instance(): Out of memory: wasm memory
When compiling assets using Laravel Mix, I am getting the below error.
Steps I followed:
Clone Laravel Git
Install all node_modules using npm install
Getting error when compiling assets using (npx ...
0
votes
1
answer
572
views
I recently installed webpack and webpack-dev-server and getting this error on running it on localhost
I recently installed webpack and webpack-dev-server and getting this error on running it from terminal.
error:
[webpack-cli] Invalid options object. Dev Server has been initialized using an options ...
2
votes
3
answers
3k
views
Hot reloading not working Rails 6 and webpacker 5.4.3 gem
I'm using Rails 6 and the webpacker 5.4.3 gem. I just recently upgraded several node packages and added one which broke hot reloading and can't determine why; these are the packages I've upgraded/...
12
votes
5
answers
19k
views
Unable to load @webpack-cli/serve
I downloaded a project folder from a pluralsight tutorial, when I try to run it with npm start it shows this message:
[webpack-cli] Unable to load '@webpack-cli/serve' command
[webpack-cli] TypeError:...
6
votes
0
answers
637
views
[webpack-cli][Error: EEXIST: file already exists, open '....'] - Docker environment
This is using Docker. It works when using wsl2 but when using hyper-v I'm getting the issue.
I'm trying to run mix watch -- --watch-options-poll=3000 or mix --production but every time I'm running it ...
9
votes
2
answers
11k
views
TypeError: webpack.optimize.UglifyJsPlugin is not a constructor
I'm experiencing a TypeError and am unsure how to resolve it. I look forward to any help you can provide. The following is the terminal output from yarn run build:
BUILD_DIR /Users/blakelucey/Desktop/...
1
vote
1
answer
3k
views
Getting error in console Uncaught ReferenceError: arguments is not defined after upgrading the webpack 4 to webpack 5
Getting error in console Uncaught ReferenceError: arguments is not defined after upgrading the webpack 4 to webpack 5. This arguments is in debounce funtion
0
votes
1
answer
495
views
What is the correct syntax for webpack command line options?
I've seen two in the docs ...
https://webpack.js.org/configuration/mode/
version 1
webpack --mode=development
and
https://webpack.js.org/api/cli/
version 2
npx webpack --mode development
One has ...
2
votes
2
answers
5k
views
Cannot GET / - localhost 8080 not working with webpack dev server
I have been following this tutorial online: https://www.youtube.com/watch?v=TOb1c39m64A.
I am about 10 minutes in, where we are starting the webpack dev server for the first time. I do this and when I ...
1
vote
2
answers
14k
views
Javascript & Webpack: Error: Unknown option '--watch-content-base'
I am trying to integrate WebPack into the scripts my package.json file. I was following a video to try and do it and it works fine up until I enter 'npm start'.
I get an error message in the terminal ...
2
votes
1
answer
2k
views
Why does webpack not like React.StrictMode
When I run npx webpack-cli --analyze --node-env development I get an error about it not liking <React.StrictMode>:
Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close ...
1
vote
0
answers
791
views
Rebuild with visual studio and webpack-cli does not build my jsx file
I was following this two tutorials to create my first react app and node.js:
Doc Microsoft(The worst doc in MS I have ever seen)
Medium.com This one helped me to build a working site.
I am using ...
1
vote
2
answers
3k
views
TypeError: Cannot read property 'name' of undefined at new WebpackCLI
I'm trying to run yarn dev in my project and nothing happen, just display this error below:
[webpack-cli] TypeError: Cannot read property 'name' of undefined
at new WebpackCLI (C:\Users\mikae\...
0
votes
1
answer
1k
views
Laravel Mix: npm run dev and npm run watch error-> configuration.loader should be an object
I recently tried to compile my files on development platform by using npm run watch & also npm run dev, but both gave me an error given below:
[webpack-cli] Invalid configuration object. Webpack ...
5
votes
1
answer
5k
views
why webpack output is always main.js?
I have project with this structure:
my-app/
├─ node_modules/
├─ dist/
├─ src/
│ ├─ index.css
│ ├─ index.js
│ ├─ index.html
├─ package.json
├─ webpack.config.js
My webpack.js is:
const { Module }...
80
votes
10
answers
72k
views
Webpack Dev Server Config - contentBase not working in latest version
When I upgrade webpack to 4.0.0-beta.3 and run npx webpack serve I get this error:
[webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not ...
0
votes
1
answer
2k
views
npm not start. Error: Cannot find module 'webpack-cli/bin/config-yargs'
when I give npm start comand its show
internal/modules/cjs/loader.js:883
throw err:
Error: Cannot finde module'webpack-cli/bin/config-yargs'
plz help me to solve this problem
use os : windows 10
node ...
1
vote
0
answers
702
views
Getting webpack error after update to version 5 from 3
I recently moved from webpack 3 to 5 and made some changes as per the suggestions, however after this upgrade, build fails and server won't start. here is my webpack file
const path = require('path')
...
0
votes
1
answer
542
views
webpack-cli Moved webpack.config.js
I used npx webpack-cli init to create my config file. I then decided to moved the created config files into a config/ folder. Now when I run serve it tells me the mode hasnt been set. I imagine I need ...
2
votes
0
answers
725
views
webpack-cli SyntaxError: Invalid regular expression: /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/: [duplicate]
I'm trying to install the lastest version of webpack and the following message keeps coming back in my terminal.
Screenshot after "npm start"
8
votes
2
answers
16k
views
Webpack Unknown option '--display-error-details'
I am in the process of upgrading webpack from v4 to v5.
I have started with upgrading webpack-cli, as explained in the doc.
So when I run npx webpack --version I get
webpack 4.46.0
webpack-cli 4.5.0
...
4
votes
1
answer
1k
views
webpack 5 display-modules option stopped working
In webpack 4 I was using --display-modules option of webpack-cli. I can also see it in the documentation.
moving to webpack 5, my build started to fail with below error:
[webpack-cli] Error: Unknown ...
4
votes
1
answer
1k
views
Should I use the webpack command or the webpack-cli command?
I understand that the webpack package and the webpack-cli package both need to be installed in order to use webpack commands. I understand that in webpack 3 there was just one package and it contained ...