geelen / jspm-loader-jsx

A hot-reloading JSX plugin for JSPM
21 stars 2 forks source link

breaks when trying to bundle #7

Open mgenev opened 8 years ago

mgenev commented 8 years ago

I run the command jspm bundle js/app.jsx! -i

and it breaks on the html inside the jsx like this:

err  MultipleErrors: js/collection-tile.jsx:9:7: Unexpected token <
     js/collection-tile.jsx:10:9: Unexpected token <
     js/collection-tile.jsx:10:31: Unexpected token '/model/'
     js/collection-tile.jsx:10:33: Unexpected token this
     js/collection-tile.jsx:10:46: Unexpected token }
     js/collection-tile.jsx:11:11: Unexpected token <
     js/collection-tile.jsx:11:20: Unexpected token this
     js/collection-tile.jsx:11:21: Unexpected token props
     js/collection-tile.jsx:11:32: Unexpected token }
     js/collection-tile.jsx:11:34: Expected '/' in regular expression literal
     js/collection-tile.jsx:12:25: Unexpected token this
     js/collection-tile.jsx:12:26: Unexpected token props
     js/collection-tile.jsx:12:41: Unexpected token }
     js/collection-tile.jsx:12:43: Unexpected token >
     js/collection-tile.jsx:13:10: Expected '/' in regular expression literal
     js/collection-tile.jsx:14:8: Expected '/' in regular expression literal
     js/collection-tile.jsx:15:3: Unexpected token }
     js/collection-tile.jsx:16:1: Unexpected token }
     js/collection-tile.jsx:17:1: Unexpected token End of File
     js/collection-tile.jsx:17:1: Unexpected token End of File
     js/collection-tile.jsx:17:1: Unexpected token End of File```
wmeints commented 8 years ago

Ran into the same problem. Looks like it is not converting the jsx files to javascript before bundling them.

sertaconay commented 8 years ago

Maybe you should follow this post: http://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html