DanSnow / vue-recaptcha

Google ReCAPTCHA component for Vue.js
http://dansnow.github.io/vue-recaptcha/
MIT License
864 stars 134 forks source link

Package import specifier "#imports" is not defined in package #1450

Open AsbDaryaee opened 10 months ago

AsbDaryaee commented 10 months ago

Description

Package import specifier "#imports" is not defined in package

image

Minimal Reproducible Example

I added modules: ['vue-recaptcha/nuxt'] to my nuxt.config.ts and the whole app doesn't load at all.

System info

------------------------------
- Operating System: Windows_NT
- Node Version:     v20.9.0
- Nuxt Version:     3.7.4
- CLI Version:      3.9.0
- Nitro Version:    2.6.3
- Package Manager:  pnpm@8.10.5
- Builder:          -
- User Config:      css, postcss, modules, runtimeConfig, device, vite, gtag, app
- Runtime Modules:  nuxt-schema-org@3.0.0, @nuxt/image@1.0.0-rc.1, nuxt-swiper@1.2.2, @pinia/nuxt@0.4.11, @vueuse/nuxt@10.4.1, @nuxtjs/device@3.1.1, nuxt-gtag@1.1.1, vue-recaptcha/nuxt
- Build Modules:    -
------------------------------
mathieuCatapulpe commented 10 months ago

Same here, did you find a workaround ?

AsbDaryaee commented 9 months ago

Same here, did you find a workaround ?

Unfortunately not, I ended up using Nuxt reCaptcha Module with some extra code to implement it on Nuxt 3

Lui22 commented 9 months ago

Update to the latest alpha version. At the moment it is the 3.0.0-alpha.6

technoY2K commented 6 months ago

Update to the latest alpha version. At the moment it is the 3.0.0-alpha.6

This worked for me. Although, I'm curious. Anyone know what the fix was?

DanSnow commented 5 months ago

If you see an error like this in a Nuxt project. It usually means adding the package name to build.transpile in nuxt.config.ts.