Closed xerotolerant closed 7 years ago
The following errors are being output to the console Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
and
Cannot call a class as a function
createContainer is being called as follows
const functionalComponent = (props) => { return ( ///some valid jsx ) } export default createContainer(props => {}, functionalComponent);
index.json
"dependencies": { "create-react-class": "^15.6.0", "react": "16.0.0-alpha.12", "react-native": "0.47.1", "react-native-meteor": "^1.1.0", "react-router-native": "^4.1.1" }, "devDependencies": { "babel-jest": "20.0.3", "babel-preset-react-native": "next", "jest": "20.0.4", "react-test-renderer": "15.6.1" }, "jest": { "preset": "react-native" }
My problem was calling Meteor.Collection('collection_name') rather than Meteor.collection('collection_name')
Meteor.Collection('collection_name')
Meteor.collection('collection_name')
didn't realize it was supposed to be a lowercase c.
The following errors are being output to the console
Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
and
Cannot call a class as a function
createContainer is being called as follows
index.json