Skip to main content

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
-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\...
AlexD's user avatar
  • 1
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 ...
nicholas_randall's user avatar
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 ...
saniya ikram's user avatar
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 ...
jammerman's user avatar
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-...
Rafael Mora's user avatar
  • 1,185
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 ...
A.Vandijck's user avatar
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 ...
TheUncleLion's user avatar
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 ....
K.Yang's user avatar
  • 39
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 ...
Jose Montalvo's user avatar
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 (...
AFAF's user avatar
  • 589
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] ...
paul vinchent's user avatar
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 ...
crawfish39's user avatar
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....
Chris's user avatar
  • 964
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 ...
Natalia Gołębiewska's user avatar
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
Akshay Vijay Jain's user avatar

15 30 50 per page
1
2 3 4 5 6