Running the compile command after upgrading vueCli 4.x to 5.x may result in the following error:
ERROR ValidationError: Progress Plugin Invalid Options
options should NOT have additional properties
options should NOT have additional properties
options should NOT have additional properties
options should pass "instanceof" keyword validation
options should match exactly one schema in oneOf
This may be caused by the inconsistency between the locally installed version of webpack and the version of vue-cli.
Solution:
1. Check if the webpack version in node_modules is also upgraded to version 5.x. If not, upgrade to version 5.x.
2. Check if the devServer in vue.config.js has overlay configuration, this configuration will be incompatible in vue-cli 5.x version, you have to remove it, otherwise it will also report an error when running
3. delete the wrong node_modules and package-lock.json
4. Clear npm cache: npm cache clean –force
5. reinstall the dependencies: npm install
Read More:
- [Solved] vue run serve Error: ValidationError: Progress Plugin Invalid Options
- Node rsa Library Error [InvalidAsn1Error]: Expected 0x2: got 0x30
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options
- [Solved] Vue2.x vue-lazyload Error: Failed to resolve directive: lazy
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- How to Solve @Vue/cli3.X Using less Error
- Typescript error: TSError: x Unable to compile TypeScript…
- Vue3.X Attribute Inheritance error [How to Solve]
- How to Solve Vue project Startup Error (Node Upgrade issue)
- [Solved] vuecli2+axios Error: NotSameOriginAfterDefaultedToSameOriginByCoep
- Cnpm install vuecli error [How to Solve]
- [Solved] Syntax Error: Error: Node Sass does not yet support your current environment: OS X Unsupported archi
- [Solved] antd4. X rangepicker assigns an initial value Error
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Error:Plugin/Preset files are not allowed to export objects, only functions
- [Solved] SyntaxError: Invalid regular expression: invalid group specifier name
- Error: Duplicate plugin/preset detected [How to Solve]
- [vite] Failed to parse source for import analysis because the content contains invalid JS syntax.
- [Modified] svg loader Error: Plugin name should be specified