Skip to content

[webpack-cli] Error: Cannot find module 'babel-merge' #69

@NareshKurukuti

Description

@NareshKurukuti

Hi moeen-basara,

I am getting the error as shown below, when running "npm install && npm run dev" command., Can you help me, How to resolve this issue.

development
mix

[webpack-cli] Error: Cannot find module 'babel-merge'
Require stack:

  • C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\BabelConfig.js
  • C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\config.js
  • C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\Mix.js
  • C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\setup\webpack.config.js
  • C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\lib\webpack-cli.js
  • C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\lib\bootstrap.js
  • C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\bin\cli.js
  • C:\xampp\htdocs\laravel-react\node_modules\webpack\bin\webpack.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at require (C:\xampp\htdocs\laravel-react\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
    at Object. (C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\BabelConfig.js:1:75)
    at Module._compile (C:\xampp\htdocs\laravel-react\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\BabelConfig.js',
    'C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\config.js',
    'C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\src\Mix.js',
    'C:\xampp\htdocs\laravel-react\node_modules\laravel-mix\setup\webpack.config.js',
    'C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\lib\webpack-cli.js',
    'C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\lib\bootstrap.js',
    'C:\xampp\htdocs\laravel-react\node_modules\webpack-cli\bin\cli.js',
    'C:\xampp\htdocs\laravel-react\node_modules\webpack\bin\webpack.js'
    ]
    }

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