vue-masked-input
vue-masked-input copied to clipboard
Cannot import from node_modules in a Vue 2.4.1 project
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.
I Have the same issue
I have the same issue
error: Processing of node_modules/vue-masked-input/dist/maskedInput.js failed. SyntaxError: 'import' and 'export' may only appear at the top level (5:4)
And I have the same issue
You can try to declare this module. In some file in project need to write
declare module 'vue-masked-input';
I use ts and it's works for me