-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
SyntaxError: Cannot use import statement outside a module #4945
Comments
The bundles are now generated with Try adding vee-validate to the |
I tried adding vee-validate to transformIgnore, and also converted the whole project to type: module. Both to no avail. I do assume it's Jest tho, because it only fails in tests, not when running the app. |
Here is the same issue: jestjs/jest#9756 - and they're pointing to jestjs/jest#9430, which is still open |
I'm surprise they still hadn't closed that. I will check to see if there are any workarounds for that. Wild suggestion: switch to Vitest 😅 |
Yeah I have 3 options now: ignore the vee-validate update forever- or untill jest supports esm propertly. Or switch to vitest. |
What happened?
Since 4.14.4 (specifically 4f88d85) I see this error when running my tests:
Reproduction steps
import { defineRule } from 'vee-validate';
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
No response
Demo link
no
Code of Conduct
The text was updated successfully, but these errors were encountered: