Webpack: Module build failed
See original GitHub issueI’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:
- Created 6 years ago
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your feedback, I will seriously check this question!
Enjoy your job!😆