vue-recaptcha icon indicating copy to clipboard operation
vue-recaptcha copied to clipboard

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

Open AsbDaryaee opened this issue 2 years ago • 5 comments

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:  [email protected]
- Builder:          -
- User Config:      css, postcss, modules, runtimeConfig, device, vite, gtag, app
- Runtime Modules:  [email protected], @nuxt/[email protected], [email protected], @pinia/[email protected], @vueuse/[email protected], @nuxtjs/[email protected], [email protected], vue-recaptcha/nuxt
- Build Modules:    -
------------------------------

AsbDaryaee avatar Nov 18 '23 08:11 AsbDaryaee

Same here, did you find a workaround ?

mathieuCatapulpe avatar Dec 01 '23 14:12 mathieuCatapulpe

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

AsbDaryaee avatar Dec 10 '23 02:12 AsbDaryaee

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

Lui22 avatar Dec 15 '23 15:12 Lui22

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?

technoY2K avatar Mar 26 '24 22:03 technoY2K

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.

DanSnow avatar Apr 28 '24 01:04 DanSnow