When I run npm run watch, this is what I get.
[webpack-cli] Invalid options object. Progress Plugin has been initialized using an options object that does not match the API schema.
- options should be one of these:
object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? } | function
Details:
* options has an unknown property 'name'. These properties are valid:
object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? }
-> Options object for the ProgressPlugin.
* options has an unknown property 'color'. These properties are valid:
object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? }
-> Options object for the ProgressPlugin.
* options has an unknown property 'reporters'. These properties are valid:
object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? }
-> Options object for the ProgressPlugin.
* options has an unknown property 'reporter'. These properties are valid:
object { activeModules?, dependencies?, dependenciesCount?, entries?, handler?, modules?, modulesCount?, percentBy?, profile? }
-> Options object for the ProgressPlugin.
Comments
Comment #2
avpadernoComment #3
dokuf commentedSame here, tried it on different environments - local, in docker container, DDEV always the same problem
Why does this issue have minor priority if it blocks installation/usage completely?
After some help of AI I removed webpackbar and now it works.
Comment #4
paulmckibbenI also ran into this upon creation of a new radix subtheme. Bumping priority to "normal" and changing category to "bug report". I suspect something has gone awry with dependencies.
Comment #5
paulmckibbenI was able to work around the problem by downgrading Webpack to a version that doesn't enforce strict schema validation.
I added the following to my subtheme's package.json file (between the "scripts" section and the "devDependencies" section):
I then removed package.lock and did
npm installagain.After that, I was able to
npm run watchandnpm run productionwithout any issue.Comment #6
avpadernoComment #7
f0ns commentedAlso ran into the issue, the fix in #5 worked for me.
Comment #8
chrisckThanks @paulmckibben. #5 worked for me too.
Comment #10
doxigo commentedtemporarily fixed it this way, now we are pinned on a 2 year old webpack release. we need to migrate to Vite soon given laravel-mix is really dead. Thanks everyone