Skip to content

Failed to start project #20

Description

@iksent

yarn start produces next error:

...\node_modules\react-app-rewire-hot-loader\index.js:28
  getBabelLoader(config).options.plugins.push(plugin);
                        ^
TypeError: Cannot read property 'options' of undefined

My files:

package.json:

    "devDependencies": {
        "react-app-rewire-hot-loader": "^2.0.1",
        "react-app-rewired": "1.6.2", // Also tried with 2.1.1 - same error
        "react-hot-loader": "^4.8.2",
    },
    "scripts": {
        "start": "react-app-rewired start",
        "build": "react-app-rewired build",
        "test": "react-app-rewired test --env=jsdom",
        "eject": "react-scripts eject",
    ...

config-overrides.js:

const rewireReactHotLoader = require('react-app-rewire-hot-loader')

/* config-overrides.js */
module.exports = function override (config, env) {
    config = rewireReactHotLoader(config, env)
    return config
}

I have no babel.config.js and .babelrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions