Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaks when trying to bundle #15

Open
mgenev opened this issue Jan 11, 2016 · 2 comments
Open

breaks when trying to bundle #15

mgenev opened this issue Jan 11, 2016 · 2 comments

Comments

@mgenev
Copy link

mgenev commented Jan 11, 2016

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```
@infinite-tape
Copy link

I get this same problem calling jspm bundle app/module build/bundle.js --minify followed by Unexpected token errors in the component. My code hasn't changed, but I've upgraded jspm. Is there a new way to do this?

@mgenev
Copy link
Author

mgenev commented Jan 22, 2016

I ended up solving this by removing this plugin and allowing babel to handle my jsx which it does out of the box, if you remove the blacklist for jsx in jspm/system.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants