-
Notifications
You must be signed in to change notification settings - Fork 92
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 from node_modules in a Vue 2.4.1 project #25
Comments
I Have the same issue |
developeruz
added a commit
to developeruz/vue-masked-input
that referenced
this issue
Aug 9, 2017
I have the same issue
|
And I have the same issue |
artemv
added a commit
to artemv/vue-masked-input
that referenced
this issue
Jul 4, 2018
Es2015 preset is deprecated now: https://babeljs.io/docs/en/env.html. This also switches off {modules: false} babelrc option which makes the bundle compatible with Jest and some other env configurations. Fixes niksmr#52 Fixes niksmr#25
You can try to declare this module. In some file in project need to write I use ts and it's works for me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After installing your module using npm, i tried to import It like the example page says, and gulp throws error:
'import' and 'export' may appear only with 'sourceType: module'
It seems your module is malformed. I had to copy the MaskedInput.js code into my project and install Its dependency to make It work properly, but It looses the link to your npm project.
Using babelify + browserify + vueify combo with Vuejs 2.4.1
If you have any questions about this problem, lemme know. I'll gladly to help.
The text was updated successfully, but these errors were encountered: