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

"#imports" is not defined in package using Vitest #3784

Closed
youri-spendcloud opened this issue Apr 3, 2025 · 0 comments
Closed

"#imports" is not defined in package using Vitest #3784

youri-spendcloud opened this issue Apr 3, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@youri-spendcloud
Copy link

Environment

  • Operating System: Darwin
  • Node Version: v22.13.1
  • Nuxt Version: -
  • CLI Version: 3.24.0
  • Nitro Version: -
  • Package Manager: [email protected]
  • Builder: -
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Is this bug related to Nuxt or Vue?

Vue

Version

v3.0.2

Reproduction

https://github.com/youri-spendcloud/vue-nuxt-ui-vitest

Clone the repo, pnpm install and pnpm run test:unit

Description

Unit testing with a Nuxt UI component in the test fails.

Additional context

No response

Logs

TypeError: Package import specifier "#imports" is not defined in package /Users/youri/Code/vue-nuxt-ui-vitest/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_@t_87d772e460ca07c23a57ac35b1e85194/node_modules/@nuxt/ui/package.json imported from /Users/youri/Code/vue-nuxt-ui-vitest/node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected]_@t_87d772e460ca07c23a57ac35b1e85194/node_modules/@nuxt/ui/dist/runtime/composables/useToast.js
@youri-spendcloud youri-spendcloud added bug Something isn't working triage v3 #1289 labels Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants