0.5.13 Multiple default exports crashing meteor and babel minifier
See original GitHub issueDescribe the bug
Error within UI after successful build:
Error thrown during babel minification process in meteor:
export default Component;
at maybeThrowMinifyErrorBySourceFile
(packages/minifyStdJS/plugin/minify-js.js:96:26)
at files.forEach.file (packages/minifyStdJS/plugin/minify-js.js:135:9)
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.processFilesForBundle
(packages/minifyStdJS/plugin/minify-js.js:118:9)
While minifying app code:
packages/minifyStdJS/plugin/minify-js.js:96:26: Babili minification error
within packages/modules.js:
node_modules/react-spinners/dist/BeatLoader.js
Only one default export allowed per module.:
export default Component;
at maybeThrowMinifyErrorBySourceFile
(packages/minifyStdJS/plugin/minify-js.js:96:26)
at files.forEach.file (packages/minifyStdJS/plugin/minify-js.js:135:9)
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.processFilesForBundle
(packages/minifyStdJS/plugin/minify-js.js:118:9)
To Reproduce Steps to reproduce the behavior:
- Meteor app using version 1.8.1. Babel runtime 7.3.4.
- Import react-spinner 0.5.13 into app and throws errors shown in screenshot.
Temporary Solution Our solution was to downgrade to version 0.5.12 until this is resolved.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:16 (9 by maintainers)
Top Results From Across the Web
A module cannot have multiple default exports - Stack Overflow
Ts2528: a module cannot have multiple default exports. Here is the code: ts import { ModelCreator } from 'entities/model-creator' export ...
Read more >npmsearchfullcat_npm143.txt - GitHub
=fastrde 2014-01-31 0.6.3 scaffolding meteor model utility aberr ... =1000ch 2014-02-14 0.1.2 png compress minify optimize img image adwiki autodafe ...
Read more >list of all node.js modules created on June 24, 2013
=hildjj 2013-06-10 15:35 0.0.5 abridge Streaming minifier for JS and CSS ... Anna Core =sitnin 2012-10-06 16:07 1.0.2 anna-theme-default Default theme for ...
Read more >https://bugs.gentoo.org/attachment.cgi?id=496815
... 22:53:31 2017 >>> dev-libs/gmp-6.1.2 Mon Sep 11 22:54:07 2017 >>> dev-libs/libbsd-0.8.6 Mon Sep 11 22:54:14 2017 >>> app-text/docbook-xml-dtd-4.5-r1 Mon ...
Read more >Compare Packages Between Distributions - DistroWatch.com
Note: In case where multiple versions of a package are shipped with a distribution, only the default version appears in the table. For...
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
ok,
0.5.13
is deprecated. tagged0.5.12
as latest.@davidhu2000 importing like
import GridLoader from 'react-spinners/GridLoader';
seems to work for me