Answer the question
In order to leave comments, you need to log in
CRA error. Html Webpack Plugin: Error: Child compilation failed. What is the problem?
I'm creating a normal react application via npx create-react-app app-name --template typescript , but as a result I get this error:
Html Webpack Plugin:
Error: Child compilation failed:
Module build failed (from ../../../#Node/authorization/6. crypto-converter/node_modules/html-webpack-pl ugin/lib/loader.js):
Error: Cannot find module 'C:\#Node\authorization\6. crypto-converter\node_modules\html-webpack-plugin\ lib\loader.js'
После этого большое количество других подобных ошибок
(node:2720) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:2720) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Answer the question
In order to leave comments, you need to log in
Solution: install [email protected] . If you know how to make the default version work, please write
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question