I have a problem with launching react application on Windows 10. For that reason, I used command npx create-react-app . and unfortunately, I received the following bug:
Error: Child compilation failed:
Module build failed (from ../../c#/artur/node_modules/html-webpack-plugin/lib/loader.js):
Error: Cannot find module 'C:\Users\Dell\Desktop\c#\artur\node_modules\html-webpack-plugin\lib\loader.js'
Require stack:
- C:\Users\Dell\Desktop\c#\artur\node_modules\loader-runner\lib\loadLoader.js
- C:\Users\Dell\Desktop\c#\artur\node_modules\loader-runner\lib\LoaderRunner.js
- C:\Users\Dell\Desktop\c#\artur\node_modules\webpack\lib\NormalModule.js
- C:\Users\Dell\Desktop\c#\artur\node_modules\webpack-manifest-plugin\dist\index.js
- C:\Users\Dell\Desktop\c#\artur\node_modules\react-scripts\config\webpack.config.js
- C:\Users\Dell\Desktop\c#\artur\node_modules\react-scripts\scripts\start.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at loadLoader (C:\Users\Dell\Desktop\c#\artur\node_modules\loader-runner\lib\loadLoader.js:19:17)
at iteratePitchingLoaders (C:\Users\Dell\Desktop\c#\artur\node_modules\loader-runner\lib\LoaderRunner.js:182:2)
at runLoaders (C:\Users\Dell\Desktop\c#\artur\node_modules\loader-runner\lib\LoaderRunner.js:397:2)
at NormalModule._doBuild (C:\Users\Dell\Desktop\c#\artur\node_modules\webpack\lib\NormalModule.js:812:3)
at NormalModule.build (C:\Users\Dell\Desktop\c#\artur\node_modules\webpack\lib\NormalModule.js:956:15)
at C:\Users\Dell\Desktop\c#\artur\node_modules\webpack\lib\Compilation.js:1367:12
ModuleBuildError: Module build failed (from ../../c#/artur/node_modules/html-webpack-plugin/lib/loader.js):
Error: Cannot find module 'C:\Users\Dell\Desktop\c#\artur\node_modules\html-webpack-plugin\lib\loader.js'
My setup: Node version: 16.13.1 LTS Npm version: 8.3.0
I'm new in the world of front-end development, and I don't know why that happens. I found similar bugs on the Internet, but these answers didn't work for me.