-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack build/dev errors #32
Comments
Berkmann18
added a commit
to Berkmann18/js-code-to-svg-flowchart
that referenced
this issue
Oct 23, 2018
Attempted to update the distribution files with the new dep changes re Bogdan-Lyashenko#32
After updating some dependencies, I now get this for > [email protected] build /mnt/c/Users/max/Projects/js-code-to-svg-flowchart
> webpack --env build
Hash: bd042d0ddd3f96ddbf63
Version: webpack 4.22.0
Time: 5290ms
Built at: 2018-10-23 11:41:43
Asset Size Chunks Chunk Names
js2flowchart.js 6.8 KiB main [emitted] main
js2flowchart.js.map 4.11 KiB main [emitted] main
Entrypoint main = js2flowchart.js js2flowchart.js.map
[./index.js] 2.64 KiB {main} [built] [failed] [1 error]
ERROR in ./index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-preset-es2015/lib/index.js
at createDescriptor (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
at items.map (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
at Array.map (<anonymous>)
at createDescriptors (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPresetDescriptors (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
at presets (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
at mergeChainOpts (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:315:26)
at /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:278:7
at buildRootChain (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:118:22)
at loadPrivatePartialConfig (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/partial.js:85:55)
at Object.loadPartialConfig (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/partial.js:110:18)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:140:26)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:3:103)
at _next (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:194)
at /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:364
at new Promise (<anonymous>)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:97)
at Object._loader (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:220:18)
at Object.loader (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:56:18)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:51:12) Which makes me think that Here's what > [email protected] dev /mnt/c/Users/max/Projects/js-code-to-svg-flowchart
> webpack --progress --colors --watch --env dev
webpack is watching the files…
Hash: bd042d0ddd3f96ddbf63
Version: webpack 4.22.0
Time: 5186ms
Built at: 2018-10-23 11:43:13
Asset Size Chunks Chunk Names
js2flowchart.js 6.8 KiB main [emitted] main
js2flowchart.js.map 4.11 KiB main [emitted] main
Entrypoint main = js2flowchart.js js2flowchart.js.map
[./index.js] 2.64 KiB {main} [built] [failed] [1 error]
ERROR in ./index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-preset-es2015/lib/index.js
at createDescriptor (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
at items.map (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
at Array.map (<anonymous>)
at createDescriptors (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPresetDescriptors (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
at presets (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
at mergeChainOpts (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:315:26)
at /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:278:7
at buildRootChain (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/config-chain.js:118:22)
at loadPrivatePartialConfig (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/partial.js:85:55)
at Object.loadPartialConfig (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/@babel/core/lib/config/partial.js:110:18)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:140:26)
at Generator.next (<anonymous>)
at asyncGeneratorStep (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:3:103)
at _next (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:194)
at /mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:364
at new Promise (<anonymous>)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:5:97)
at Object._loader (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:220:18)
at Object.loader (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:56:18)
at Object.<anonymous> (/mnt/c/Users/max/Projects/js-code-to-svg-flowchart/node_modules/babel-loader/lib/index.js:51:12) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if it's to do with the deprecation that webpack had (which changes how build/dev processes work) or to do with babel (which if I recall correctly recommend using the
babel-plugin-env
instead ofbabel-plugin-es2015
since Babel v7).I'm trying to run
npm run build
andnpm run dev
which respectively outputs:EDIT: After looking at the module list (
npm ls --depth=0
), I noticed this:The text was updated successfully, but these errors were encountered: