-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Module parse failed: Unexpected token #1172
Comments
Looks like the mjs is not getting transpiled for node 14. I need to check the babel config. As a workaround you could add the vuelidate core to your babel pipeline or wait a bit. Or try updating to a newer node hehe |
I'm having the same problem too, as of today. I'm running Node version 18.4.0. |
Same problem in node 16 |
I will fix it today, sorry all |
Same problem, fixed by transpiling with babel and |
Thank you, @dobromir-hristov ! Out of curiosity, do you know what caused this? I'm running version 2.0.0 (and have had this for the last few months). I haven't changed my Node version or anything environmental on my end. This just seemed to break out of nowhere when I re-installed my dependencies on Monday. I'd appreciate any insight. |
I changed the build process and that apparently broke the babel config that was by default. |
Thank you for the clarification! |
Alright give 2.0.2 a try :) |
Confirming that 2.0.2 works. Thank you! |
Describe the bug
It works fine in the 2.0.0-alpha.41, but the recent 2.0.1 introduced the following error during the build
Reproduction URL
used original sample with just updated version of the library
https://codesandbox.io/s/competent-phoebe-sxjyjz?file=/package.json
To Reproduce
Steps to reproduce the behavior:
2.0.1
version of the packagenpm install
npm run build
Expected behavior
No error
Additional context
Node version:
v14.20.1
The text was updated successfully, but these errors were encountered: