Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Upgrading to Meteor1.5 : TypeError: module1.exportDefault is not a function #87

Open
Falieson opened this issue Jul 24, 2017 · 0 comments

Comments

@Falieson
Copy link

Falieson commented Jul 24, 2017

Updated a project to 1.5.0 and started receiving the below error when running meteor test.

I have isolated this to a problem with updating to Meteor 1.5.x (1.5.1 too) by aligning all the packages listed in .meteor/packages with the package versions before upgrading.

Error

W20170724-13:11:49.212(-7)? (STDERR) /Users/sjcfmett/.meteor/packages/meteor-tool/.1.5.1.gda7tv++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20170724-13:11:49.247(-7)? (STDERR) 						throw(ex);
W20170724-13:11:49.247(-7)? (STDERR) 						^
W20170724-13:11:49.248(-7)? (STDERR)
W20170724-13:11:49.248(-7)? (STDERR) TypeError: module1.exportDefault is not a function
W20170724-13:11:49.248(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.setup.setupMochaClient.js (packages/practicalmeteor:mocha/meteor/src/setup/setupMochaClient.js:1:9)
W20170724-13:11:49.249(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-13:11:49.249(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-13:11:49.251(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.setup.index.js (packages/practicalmeteor:mocha/meteor/src/setup/index.js:1:150)
W20170724-13:11:49.252(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-13:11:49.252(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-13:11:49.252(-7)? (STDERR)     at meteorInstall.node_modules.meteor.practicalmeteor:mocha.meteor.src.index.js (packages/practicalmeteor:mocha/meteor/src/index.js:1:431)
W20170724-13:11:49.253(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170724-13:11:49.253(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170724-13:11:49.253(-7)? (STDERR)     at /private/var/folders/wz/73gq7k591wjbmk5zjf_1h5bnlwwdyw/T/meteor-test-run9yq19b/.meteor/local/build/programs/server/packages/practicalmeteor_mocha.js:8141:15
=> Exited with code: 1

Working Package 1.4.4.2

[email protected]             # Packages every Meteor app needs to have
[email protected]       # Packages for a great mobile UX
[email protected]                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
[email protected]            # Reactive variable for tracker
[email protected]                 # Meteor's client-side reactive programming library

[email protected]   # CSS minifier run for production mode
[email protected]    # JS minifier run for production mode
[email protected]                # ECMAScript 5 compatibility for older browsers.
[email protected]              # Enable ECMAScript2015+ syntax in app code

kadira:flow-router      # FlowRouter is a very simple router for Meteor
kadira:blaze-layout     # Layout manager for blaze (works well with FlowRouter)
[email protected]                    # Leaner CSS language


practicalmeteor:mocha             # A package for writing and running your meteor app and package tests with mocha
johanbrook:publication-collector  # Test a Meteor publication by collecting its output
fourseven:scss
arillo:flow-router-helpers
aldeed:simple-schema
aldeed:[email protected]
dburles:factory
[email protected]
[email protected]
[email protected]
service-configuration
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
aldeed:[email protected]
alanning:roles

Broken Package 1.5.0

[email protected]             # Packages every Meteor app needs to have
[email protected]       # Packages for a great mobile UX
[email protected]                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
[email protected]            # Reactive variable for tracker
[email protected]                 # Meteor's client-side reactive programming library

[email protected]   # CSS minifier run for production mode
[email protected]    # JS minifier run for production mode
[email protected]                # ECMAScript 5 compatibility for older browsers.
[email protected]              # Enable ECMAScript2015+ syntax in app code

kadira:flow-router      # FlowRouter is a very simple router for Meteor
kadira:blaze-layout     # Layout manager for blaze (works well with FlowRouter)
[email protected]                    # Leaner CSS language


practicalmeteor:mocha             # A package for writing and running your meteor app and package tests with mocha
johanbrook:publication-collector  # Test a Meteor publication by collecting its output
fourseven:scss
arillo:flow-router-helpers
aldeed:simple-schema
aldeed:[email protected]
dburles:factory
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
aldeed:[email protected]
alanning:roles
[email protected]

Asked on Stack Overflow: https://stackoverflow.com/questions/45293117/mocha-testing-broken-after-upgrade-to-meteor-1-5-x

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant