-
-
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
Unable to autoImport
components in nuxt
#4862
Comments
I'm getting the same error in Nuxt v3.13.2 but NOT in v3.13.1 There were multiple changes importing, but I'm not sure which change caused this. |
Referenced here: |
Can confirm I have this issue in the latest nuxt version |
Having the same issue as well |
The same error, works with nuxt 3.12.4 bug in 3.13.2 |
Same here. What version of vee-validate should I use with nuxt 3.12.4? |
@rrubio seems only up to that version works. |
I'm also having a similar issue ( |
You don't have to downgrade nuxt to workaround this issue. You can simply import the component manually from |
I know, but I have a lot of components importing |
Just to clarify, if you're including the |
For now I would recommend a workaround: create a plugin: veevalidate.client.ts `import { Form, Field, ErrorMessage } from 'vee-validate'; export default defineNuxtPlugin((nuxtApp) => { Lets hope it gets fixed soon :) |
This issue should be fixed by this: nuxt/nuxt#29036 |
It broken again, just had to update things here and got this error: The requested module '[...]vee-validate.js' does not provide an export named 'Form') |
There hasn't been a new Nuxt release since the fix was merged. It looks like it's due in 3.14: nuxt/nuxt#29077. If you want to try the fix it will be available on the nightly channel. |
I just remapped the component names:
I will try that nightly |
I have no problem using 3.13.1, only have this issue with 3.13.2 |
Looks like Nuxt is looking at vee-validate's I will check. |
I believe this is fixed with fix was in 97cebd8 Let me know if this isn't the case. I'm not sure if this is a wide spread problem in Nuxt or not, but I noticed it wasn't refering to the esm build files even tho they are provided, adding an |
What happened?
When integrating with nuxt, setting
autoImport: true
doesn't seem to work correctly.An error is thrown:
Reproduction steps
<Form>
Version
Vue.js 3.x and vee-validate 4.x
What browsers are you seeing the problem on?
Relevant log output
Demo link
https://stackblitz.com/edit/github-kdegep
Code of Conduct
The text was updated successfully, but these errors were encountered: