-
Notifications
You must be signed in to change notification settings - Fork 25
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
Uncaught SyntaxError: Unexpected token import #20
Comments
Which kind of the browser? Is it IE?
I thought I removed it from the docs. Will keep it in NPM for the backward compatibility, though. It's the bug. |
Ah, I think I understand what is happening. That's probably because of the fact that tags.tsx is being compiled with ES6 modules imports. So, it can work with webpack 2, but not with webpack 1. Let me see what I can do, it's tricky. |
Okay, published the fix. Now,
Reopen if there are still any problems. |
I'm using create-react-app and a chrome browser, so webpack2 and browser compatibility should be no issue. |
As in the docs, I use
import { Input } from 'valuelink/lib/tags'
It's transpiling fine, but in the browser code I get:
Uncaught SyntaxError: Unexpected token import
BTW in your README.md it's still
import { Input } from 'valuelink/tags.jsx'
, but that file does not exist anymore in the NPM?The text was updated successfully, but these errors were encountered: