Migrating to Meteor 1.3 with react-meteor-data


#1

Hi,

I have been trying to migrate my app to Meteor 1.3 and following the official docs for application structure, I created a client/main.js and move rest of my code to imports/client.

My main.js just has import "imports/client/startups/index.js" but on loading the app in the browser, JS console says Unexpected token import. My .meteor/versions looks like:

accounts-base@1.2.8 accounts-oauth@1.1.13 accounts-password@1.1.11 accounts-twitter@1.0.10 accounts-ui@1.1.9 accounts-ui-unstyled@1.1.12 allow-deny@1.0.5 autoupdate@1.2.10 babel-compiler@6.8.2 babel-runtime@0.1.9 base64@1.0.9 binary-heap@1.0.9 blaze@2.1.8 blaze-html-templates@1.0.4 blaze-tools@1.0.9 boilerplate-generator@1.0.9 caching-compiler@1.0.5 caching-html-compiler@1.0.6 callback-hook@1.0.9 check@1.2.3 coffeescript@1.1.1 cosmos:browserify@0.10.0 ddp@1.2.5 ddp-client@1.2.8 ddp-common@1.2.6 ddp-rate-limiter@1.0.5 ddp-server@1.2.8 deps@1.0.12 diff-sequence@1.0.6 dpraburaj:react-spin@2.3.4 ecmascript@0.4.5 ecmascript-runtime@0.2.11 ejson@1.0.12 email@1.0.14 fastclick@1.0.12 fortawesome:fontawesome@4.5.0 geojson-utils@1.0.9 hot-code-push@1.0.4 html-tools@1.0.10 htmljs@1.0.10 http@1.1.6 id-map@1.0.8 jparker:crypto-core@0.1.0 jparker:crypto-md5@0.1.1 jquery@1.11.9 jsx@0.2.4 launch-screen@1.0.12 less@2.6.2 livedata@1.0.18 localstorage@1.0.11 logging@1.0.13 matb33:collection-hooks@0.8.1 maxharris9:classnames@0.0.1 meteor@1.1.15 meteor-base@1.0.4 meteorhacks:flow-router@1.19.0 meteorhacks:kadira@2.28.7 meteorhacks:meteorx@1.4.1 minifier-css@1.1.12 minifier-js@1.1.12 minimongo@1.0.17 mobile-experience@1.0.4 mobile-status-bar@1.0.12 modules@0.6.3 modules-runtime@0.6.4 momentjs:moment@2.13.1 mongo@1.1.9 mongo-id@1.0.5 mongo-livedata@1.0.12 npm-bcrypt@0.8.6_1 npm-mongo@1.4.44 oauth@1.1.11 oauth1@1.1.10 observe-sequence@1.0.12 ordered-dict@1.0.8 praneybehl:react-select@0.6.11_1 promise@0.7.2 random@1.0.10 rate-limit@1.0.5 react@0.1.13 react-meteor-data@0.1.9 react-runtime@0.13.3_7 react-runtime-dev@0.13.3_7 react-runtime-prod@0.13.3_6 reactive-dict@1.1.8 reactive-var@1.0.10 reload@1.1.9 retry@1.0.8 routepolicy@1.0.11 service-configuration@1.0.10 session@1.1.6 sha@1.0.8 spacebars@1.0.12 spacebars-compiler@1.0.12 srp@1.0.9 standard-minifier-css@1.0.7 standard-minifier-js@1.0.7 templating@1.1.11 templating-tools@1.0.4 tracker@1.0.14 twitter@1.1.10 ui@1.0.11 underscore@1.0.9 url@1.0.10 webapp@1.2.9 webapp-hashing@1.0.9

I am guessing it’s something to do with react-meteor-data package import react-runtime and jsx packages. But I can’t seem to figure it out yet.