meteor / react-packages

Meteor packages for a great React developer experience
http://guide.meteor.com/react.html
Other
573 stars 158 forks source link

1.3 beta and jsx #148

Closed ghKZ closed 8 years ago

ghKZ commented 8 years ago

With current version import/export syntax isn't working with the Meter 1.3 beta

Uncaught SyntaxError: Unexpected token import same for export

avital commented 8 years ago

Did you add the modules package? Can you supply a repro in the form of a Meteor app in a Git repository we can clone and run?

ghKZ commented 8 years ago

You can clone https://github.com/kzvaigzne/jsx-test and run it, it will provide the Uncaught SyntaxError: Unexpected token export error in browser console as reported.

The import error can be seen if you rename client/main.js to client/main.jsx

The modules package comes baseline with every new app created in 1.3(what I did for the test repo) but adding it manually still gives the same error.

avital commented 8 years ago

Thanks, we're tracking this in https://github.com/meteor/meteor/issues/5827