Skip to content
This repository was archived by the owner on Dec 27, 2018. It is now read-only.
This repository was 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

@Falieson

Description

@Falieson

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

meteor-base@1.0.4             # Packages every Meteor app needs to have
mobile-experience@1.0.4       # Packages for a great mobile UX
mongo@1.1.17                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
reactive-var@1.0.11            # Reactive variable for tracker
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-css@1.3.4   # CSS minifier run for production mode
standard-minifier-js@2.0.0    # JS minifier run for production mode
es5-shim@4.6.15                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.8.0-rc.5              # 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)
less@2.7.9                    # 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:collection2@2.10.0
dburles:factory
accounts-ui@1.1.9
accounts-password@1.3.6
accounts-google@1.1.2
service-configuration
accounts-base@1.3.0
babel-compiler@6.20.0-pre.1
modules@0.10.0-pre.1
localstorage@1.2.0-pre.1
ecmascript-runtime-client@0.5.0-pre.1
ecmascript-runtime-server@0.5.0-pre.1
aldeed:collection2-core@1.2.0
alanning:roles

Broken Package 1.5.0

meteor-base@1.1.0             # Packages every Meteor app needs to have
mobile-experience@1.0.4       # Packages for a great mobile UX
mongo@1.1.18                   # The database Meteor supports right now
blaze-html-templates    # Compile .html files into Meteor Blaze views
reactive-var@1.0.11            # Reactive variable for tracker
tracker@1.1.3                 # Meteor's client-side reactive programming library

standard-minifier-css@1.3.4   # CSS minifier run for production mode
standard-minifier-js@2.1.0    # JS minifier run for production mode
es5-shim@4.6.15                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.8.0              # 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)
less@2.7.9                    # 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:collection2@2.10.0
dburles:factory
accounts-ui@1.1.9
accounts-password@1.3.6
accounts-google@1.2.0
service-configuration@1.0.11
accounts-base@1.3.0
babel-compiler@6.19.1
modules@0.9.0
localstorage@1.1.0
ecmascript-runtime-client@0.4.1
ecmascript-runtime-server@0.4.1
aldeed:collection2-core@1.2.0
alanning:roles
dynamic-import@0.1.0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions