Skip to content

Error #9417

Closed
Closed
Error#9417
@Ivan-Bogdan

Description

@Ivan-Bogdan

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}

Activity

ayush0x00

ayush0x00 commented on Aug 4, 2020

@ayush0x00

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

SergeOlabin

SergeOlabin commented on Sep 5, 2020

@SergeOlabin

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

YasielCabrera commented on Oct 4, 2020

@YasielCabrera

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

stale commented on Dec 25, 2020

@stale

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.

iansu

iansu commented on Jun 2, 2021

@iansu
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @iansu@SergeOlabin@YasielCabrera@ayush0x00@Ivan-Bogdan

        Issue actions

          Error · Issue #9417 · facebook/create-react-app