Skip to content

npm ERR! code ELIFECYCLE Invalid options object #10393

@AlexShirin

Description

@AlexShirin

Describe the bug

my-app@0.1.0 start F:!JS\my-app
react-scripts start
Invalid options object. React Refresh Plugin has been initialized using an options object that does not match the API schema. - options.overlay.module: The provided value "F:\!JS\my-app\node_modules\react-dev-utils\refreshOverlayInterop.js" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.

F:!JS\my-app\node_modules\react-dev-utils\refreshOverlayInterop.js
// @remove-on-eject-begin
/**

  • Copyright (c) 2015-present, Facebook, Inc.
  • This source code is licensed under the MIT license found in the
  • LICENSE file in the root directory of this source tree.
    */
    // @remove-on-eject-end
    'use strict';

const {
dismissRuntimeErrors,
reportRuntimeError,
} = require('react-error-overlay');

module.exports = {
clearRuntimeErrors: dismissRuntimeErrors,
handleRuntimeError: reportRuntimeError,
};

Environment

(Win10)

npm -version
6.14.10
node --version
v14.15.4
VSCode

Steps to reproduce

  1. npx create-react-app my-app
  2. cd my-app
  3. npm start

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions