Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error #9417

Closed
Ivan-Bogdan opened this issue Aug 4, 2020 · 5 comments
Closed

Error #9417

Ivan-Bogdan opened this issue Aug 4, 2020 · 5 comments

Comments

@Ivan-Bogdan
Copy link

I write create-react-app myapp, after all installations I write npm start, and an error appears. Why?

{Failed to compile.

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

  • configuration.module.rules[2].oneOf[1].include: The provided value "D:\!BisnesHelper\bisness\src" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bisness@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bisness@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2020-08-04T11_10_57_995Z-debug.log
PS D:!BisnesHelper\bisness> npm start

bisness@0.1.0 start D:!BisnesHelper\bisness
react-scripts start

Failed to compile.

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

  • configuration.module.rules[2].oneOf[1].include: The provided value "D:\!BisnesHelper\bisness\src" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bisness@0.1.0 start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bisness@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2020-08-04T11_15_23_920Z-debug.log}

@ayush0x00
Copy link

I got the issue resolved by replacing loaders keyword with rules.
See here for detailed and alternate solutions.

@SergeOlabin
Copy link

try removing "!" in the folder name.. i usually do the same - put "!' so that it would be sorted to the top, in this case webpack has reservation for that symbol ...

@YasielCabrera
Copy link

The same happened to me. Apparently the error is caused when some directory in the project path has the symbol "!" in its name. Removing the symbol solves the problem.

In your case, the !BisnesHelper directory is the cause of the problem

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
@iansu
Copy link
Contributor

iansu commented Jun 2, 2021

I don't think there's much we can do about this one. Just avoid directory names that start with !.

@iansu iansu closed this as completed Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants