question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack: Module build failed

See original GitHub issue

I’m using laravel-mix to build my files. I updated to the recent version and encountered this error while building.

Module build failed: Error: Couldn't find preset "es2015" relative to directory "C:\\Work\\XXX\\node_modules\\vue-quill-editor"
    at C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
    at Array.map (native)
    at OptionManager.resolvePresets (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
    at OptionManager.mergePresets (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
    at OptionManager.mergeOptions (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
    at OptionManager.init (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (C:\Work\XXX\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (C:\Work\XXX\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transpile (C:\Work\XXX\node_modules\babel-loader\lib\index.js:46:20)
    at C:\Work\XXX\node_modules\babel-loader\lib\fs-cache.js:79:18
    at ReadFileContext.callback (C:\Work\XXX\node_modules\babel-loader\lib\fs-cache.js:15:14)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:358:13)

 @ ./~/vue-quill-editor/src/editor.vue 7:2-214
 @ ./~/vue-quill-editor/src/index.js
 @ ./resources/assets/control-panel/app.js
 @ multi ./resources/assets/control-panel/app.js

Deleting .babelrc seems to solve the issue.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
surmon-chinacommented, Apr 25, 2017

Thank you for your feedback, I will seriously check this question!

0reactions
surmon-chinacommented, Apr 26, 2017

Enjoy your job!😆

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module Build Failed - Webpack, React, Babel - Stack Overflow
The answer was in installing presets npm i --save babel-preset-env babel-preset-react . Then adding another key in the webpack. config. js, in ...
Read more >
npm run dev: Module build failed, TypeError - Laracasts
I have created a new project and added fortify, jetstream and livewire. When I ran the final "npn run dev" I got the...
Read more >
Angular - Code with Mosh Forum
Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): · delete the node_modules folder · delete package-lock.json ...
Read more >
Error: Module build failed: Error: Node Sass does not yet ...
This error happened with me after upgrade of node.js. Cause: Node Sass version is not compatible with Node.js version. Solution: you should check...
Read more >
Bug report - GitHub
Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Maximum call stack size exceeded #23597.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found