Getting undefined error with react-meteor-data


#1

After upgrading to Meteor 1.5.1, I’m getting the following error.

W20170730-13:43:34.809(-7)? (STDERR) TypeError: Super expression must either be null or a function, not undefined
W20170730-13:43:34.810(-7)? (STDERR)     at exports.default (/Users/shridhar/Projects-Prod/storybook/node_modules/babel-runtime/helpers/inherits.js:21:11)
W20170730-13:43:34.810(-7)? (STDERR)     at /Users/shridhar/Projects-Prod/storybook/.meteor/local/build/programs/server/packages/react-meteor-data.js:285:26
W20170730-13:43:34.811(-7)? (STDERR)     at meteorInstall.node_modules.meteor.react-meteor-data.ReactMeteorData.jsx (/Users/shridhar/Projects-Prod/storybook/.meteor/local/build/programs/server/packages/react-meteor-data.js:293:2)
W20170730-13:43:34.811(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170730-13:43:34.812(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170730-13:43:34.813(-7)? (STDERR)     at meteorInstall.node_modules.meteor.react-meteor-data.createContainer.jsx (packages/react-meteor-data/createContainer.jsx:1:136)
W20170730-13:43:34.814(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)
W20170730-13:43:34.825(-7)? (STDERR)     at require (packages/modules-runtime.js:228:16)
W20170730-13:43:34.826(-7)? (STDERR)     at meteorInstall.node_modules.meteor.react-meteor-data.react-meteor-data.jsx (packages/react-meteor-data/react-meteor-data.jsx:1:14)
W20170730-13:43:34.826(-7)? (STDERR)     at fileEvaluate (packages/modules-runtime.js:333:9)

#2

Hi - I had this same problem, here’s how I solved it.

Read this for some background: https://github.com/meteor/react-packages/issues/225

Then go to your website home directory and update the React NPM packages like this:

1st do “meteor npm outdated” to identify the outdated React packages.

Then 2nd do one or probably several commands like “meteor npm update --save react-rest-of-package-name”

Then start up meteor and this error should be gone - it is gone for me at least. Presto!