-
Notifications
You must be signed in to change notification settings - Fork 173
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
Cannot import input-moment #9
Comments
You may try babel-preset-react to use jsx with babelify. The dist version requires |
I have that already, it is the setup that is not working. |
I am too getting error while importing... |
Me three, I'm getting error importing ... |
Getting the same error as @rskumar |
Facing the same Issue |
+1 |
Hi,
I am having problems importing your library.
import InputMoment from 'input-moment'
throws an unexpected token error on JSX-style html tags in your code (uncompiled JSX). When importing from the dist folder it compiles (
import InputMoment from 'input-moment/dist/input-moment'
), but then I get the error:ReferenceError: Can't find variable: React | input-moment.js:1
Do you have any idea why? Is it a bug in deployment or is it just me? :-) I'm trying it on a project that works like a charm otherwise, built by a gulp build script using babelify+browserify.
The text was updated successfully, but these errors were encountered: