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

Compatibility Builds #4

Closed
ohager opened this issue Sep 23, 2016 · 1 comment
Closed

Compatibility Builds #4

ohager opened this issue Sep 23, 2016 · 1 comment
Labels

Comments

@ohager
Copy link
Owner

ohager commented Sep 23, 2016

Err, I wanted to use HiRouter in one of our projects, but got

events.js:141 throw er; // Unhandled 'error' event ^ SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'

Seems, that I need to babel the guy first. Thought it'd be babel'd by our build chain. Need to solve this. This way it's not usable 🎱

@ohager ohager added the bug label Sep 23, 2016
@ohager
Copy link
Owner Author

ohager commented Sep 24, 2016

Damn ES6 CommonJS confusion. Finally, resolved. Another issue was a default export for React, which was resolved also. Now, it works exactly like expected. Cool!

@ohager ohager closed this as completed Sep 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant