-
Notifications
You must be signed in to change notification settings - Fork 133
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 resolve vue extension in node_modules #1186
Comments
Faced a similar problem, only I don't have errors at the build stage, but I get 500 already on the site.
Found a similar problem on stackoverflow. No answer anywhere( It seems that the problem is solved only by fixing the imports inside the library, you cannot influence this from the vite config. |
Hi, I have the same problem when running 'yarn generate' for my project. Many thanks in advance! |
I have a similar problem when importing in tests |
Hey @NicoleKuong @kost1k @GuillaumeDgr @RomanGovor, could you please provide a reproducible example? |
Hi, no pb, pls find below my configuration and integration of vue-recaptcha:
Then, running yarn generate produce above error message. Recaptcha seems to be working but some files are not generated due to this error by Nuxt.
Many thanks for your help! |
No answer from maintainer... You can move vue-recaptcha to your project and remove all unnecessary things from api.cjs |
If you're using Nuxt3, you can add build: {
transpile: ["vue-recaptcha"],
}, To your |
Thank you, @ItsMeRomian. I tested it using the reproducible example provided by @GuillaumeDgr and confirmed that it resolves the issue. I have released a new version that includes this fix directly in vue-recaptcha. And thanks to @GuillaumeDgr for providing the reproducible example. |
Same bug when running ssr in laravel + vue 3 stack |
The solution provided by @ItsMeRomian works for me! Many thanks for your help! |
Hi, I'm experiencing the same error when running a unit test with version 3.0.0-alpha.6 (SPA built with Vue 3 + Vite). I've tried the solution provided by @dmitrisi4 but it does not work for me.
|
I am having the same issue as @benincasantonio running my unit tests |
Hi,
I am using Nuxt 3 and vite for my project. I got an error during the build stage as Vite does not omit vue extension in node_modules:
ERROR [nuxt] [request error] [unhandled] [500] Unknown file extension ".vue"
for all the components files likeChallengeV2
,ChallengeV3
,Checkbox
Has anyone encountered this before and knows how to resolve it?
Thanks
The text was updated successfully, but these errors were encountered: