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

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

Open
xfudox opened this issue Jun 25, 2024 · 1 comment
Open

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

xfudox opened this issue Jun 25, 2024 · 1 comment
Labels

Comments

@xfudox
Copy link

xfudox commented Jun 25, 2024

Description

trying to use useChallengeV3 composable, when visiting dev server (npm run dev) got full page 500 error:

Package import specifier "#imports" is not defined in package /var/www/node_modules/vue-recaptcha/package.json imported from /var/www/node_modules/vue-recaptcha/dist/nuxt-plugin.mjs

image

Minimal Reproducible Example

added plugin in nuxt.config.ts:

  modules: [
    'vue-recaptcha/nuxt',
  ],
  runtimeConfig: {
    public: {
      recaptcha: {
        v3SiteKey: process.env..RECAPTCHA_KEY,
      },
    }
},

and imported in component:

import { useChallengeV3 } from 'vue-recaptcha'

System info

> npx nuxi info
Working directory: /var/www                                                                                                1:16:23 PM
Nuxt project info:                                                                                                         1:16:23 PM

------------------------------
- Operating System: Linux
- Node Version:     v20.12.1
- Nuxt Version:     3.11.2
- CLI Version:      3.11.1
- Nitro Version:    2.9.6
- Package Manager:  npm@10.2.5
- Builder:          -
- User Config:      devtools, app, vite, components, modules, imports, fontawesome, dir, runtimeConfig, sourcemap, devServer, nitro
- Runtime Modules:  @pinia/nuxt@0.5.1, @vesp/nuxt-fontawesome@1.0.4, vue-recaptcha/nuxt
- Build Modules:    -
------------------------------
@xfudox xfudox added the bug label Jun 25, 2024
@dhphuongg
Copy link

When I am using yarn to install: yarn add vue-recaptcha , it's version which is in package.json is 3.0.0-alpha.2
I try to change it into 3.0.0-alpha.6 and it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants