Vue version 5.0.1. After downloading, run NPM run serve to report an error
See original GitHub issueVersion
5.0.1
Environment info
node-v14.19.0-x64
vue cli 5.0.1
vue 2.6.14
Steps to reproduce
Follow the normal installation steps, and then report an error when running NPM run serve: Conflict: Multiple assets emit different content to the same filename index. html ERROR in Conflict: Multiple assets emit different content to the same filename index. html webpack compiled with 1 error
What is expected?
How to solve it?
What is actually happening?
Conflict: Multiple assets emit different content to the same filename index.html ERROR in Conflict: Multiple assets emit different content to the same filename index.html webpack compiled with 1 error
Issue Analytics
- State:
- Created 2 years ago
- Comments:11
Top Results From Across the Web
Getting error when I run npm run server on Vue JS project
First Run npm uninstall @vue/cli-plugin-pwa in terminal then Run npm i -D @vue/cli-plugin-pwa@4 this will install latest release of version ...
Read more >webpack-dev-server - npm
Used when loading multiple configurations. -o, --output-path <value> Output location of the file generated by webpack e.g. ./dist/. --stats [ ...
Read more >Installation | Vue CLI
To install the new package, use one of the following commands. You need administrator privileges to execute these unless npm was installed on ......
Read more >Vue JavaScript Tutorial in Visual Studio Code
vue file (Ctrl+S), restart the server with npm run serve and you'll see "Hello World!". Leave the server running while we go on...
Read more >error:0308010c:digital envelope routines::unsupported [Node ...
you're not using the LTS (long term support) version of Node JS. ... file by running rm –rf package.lock.json; run npm install or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
May be your project path has a special symbol like ‘(’ or ‘)’. I’m not sure if it’s a bug of copy-webpack-plugin or fast-glob, because cli will add the absolute path of the index.html in the public folder to the ignore list, if the path has a special symbol, copy-webpack-plugin will not match the path and will not ignore it. Therefore index.html will emit twice. You can rename your project path or add follow code in chainWebpack function to solve it.
tested with and without parenthesis in path. You are correct. This is seems to be the problem.