Skip to content
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

ERROR Unknown file extension ".vue" for node_modules/vue-recaptcha/dist/components/ChallengeV2.vue #1201

Closed
GuillaumeDgr opened this issue Jun 15, 2023 · 5 comments

Comments

@GuillaumeDgr
Copy link

Hi,

When trying to build for production (yarn generate), the following message appears : 'ERROR Unknown file extension ".vue" for node_modules/vue-recaptcha/dist/components/ChallengeV2.vue'

I'm using nuxt3 and "vue-recaptcha": "^3.0.0-alpha.5".

Any idea to solve this pls ?

Many thanks

@yzoz
Copy link

yzoz commented Jul 6, 2023

I have the same

@ItsMeRomian
Copy link
Contributor

If you're using Nuxt3, you can add

  build: {
    transpile: ["vue-recaptcha"],
  },

To your nuxt.config.ts. This fixed it for me.

@dmitrisi4
Copy link

On stack Laravel InertiaJS Vue 3 Vite
I added format: 'cjs' in my vite.config,js
ssr: {
noExternal: ['@inertiajs/server'],
format: 'cjs'
},
Helped solve a similar problem

@GuillaumeDgr
Copy link
Author

@ItsMeRomian solution is working well, thanks a lot!

@DanSnow
Copy link
Owner

DanSnow commented Jul 24, 2023

Close as duplicate with #1186

@DanSnow DanSnow closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants