По причине ошибки Webpack невозможно запустить вновь созданное приложение React

Рейтинг: 0Ответов: 0Опубликовано: 13.03.2023

Создал приложение React при помощи yarn create react-app. При попытке запуска yarn start выдает ошибку:

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration.cache.cacheDirectory: The provided value "C:\(здесь путь)\node_modules\.cache" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax. -> Base directory for the cache (defaults to node_modules/.cache/webpack).
  • configuration.module.rules[1].oneOf[3].include: The provided value "C:\(путь)\src" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.
  • configuration.output.path: The provided value "C:\(путь)\build" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax. -> The output directory as absolute path (required).

Что за ерунда? Почему возникает? Как лечить?

Ответы

Ответов пока нет.