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.

0.5.13 Multiple default exports crashing meteor and babel minifier

See original GitHub issue

Describe the bug

Error within UI after successful build: Screen Shot 2019-07-23 at 11 17 57 AM Screen Shot 2019-07-23 at 11 17 46 AM

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:

  1. Meteor app using version 1.8.1. Babel runtime 7.3.4.
  2. 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
davidhu2000commented, Aug 13, 2019

ok, 0.5.13 is deprecated. tagged 0.5.12 as latest.

3reactions
814k31commented, Jul 26, 2019

@davidhu2000 importing like import GridLoader from 'react-spinners/GridLoader'; seems to work for me

Read more comments on GitHub >

github_iconTop 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 >

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