Solution:
1. Delete node_modules folder, re-execute the command NPM install
2. Rename Public/index.html to index.ejs
3. Add html: { template: './src/index.ejs' }
in node_nodules/webpack/bin/webpack.
4 Restart project
Read More:
- npm ERR code ELIFECYCLE [How to Solve]
- [Solved] Error: ENOENT: no such file or directory, scandir ‘..\node_modules\node-sass\vendor‘
- Error: Rule can only have one resource source (provided resource and test + include + exclude)
- Vue Install less Error: While resolving: [email protected]
- Error: Cannot find module ‘./application‘ [How to Solve]
- Cannot read property ‘isFile‘ of undefined [How to Solve]
- [Solved] Error: Cannot find module ‘@vue/cli-shared-utils
- [Solved] Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- [Solved] Vue Error: Module build failed Error Node Sass version 6.0.1 is incompatible with ^4.0.0.
- Vue init webpack Error: unable to verify the first certificate
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Vue Error: Module build failed: Error: No PostCSS Config found in
- [Solved] VUE3 Error: Error: ENOSPC: System limit for number of file watchers reached
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- [Solved] Syntax Error: Error: Loading PostCSS Plugin failed: Cannot find module ‘autoprefixer‘
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- How to Solve NPM installation -g @view/client Error
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error resolution
- [Solved] Node.js v17 npm run dev Error: opensslErrorStack