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

Type importing causes error #3498

Closed
VATICAN-PSYCHO opened this issue Mar 8, 2025 · 2 comments
Closed

Type importing causes error #3498

VATICAN-PSYCHO opened this issue Mar 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@VATICAN-PSYCHO
Copy link

Environment

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.16.0
  • CLI Version: 3.22.5
  • Nitro Version: 2.11.5
  • Package Manager: [email protected]
  • Builder: -
  • User Config: modules, compatibilityDate
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Version

v2.21.1

Reproduction

https://stackblitz.com/edit/nuxt-ui-1oyent91?file=app.vue,nuxt.config.ts

Description

In the latest version, the following import causes an error:

import { type FormSubmitEvent } from '#ui/types';

The correct (working) syntax is:

import type { FormSubmitEvent } from '#ui/types';

Additional context

No response

Logs

@VATICAN-PSYCHO VATICAN-PSYCHO added bug Something isn't working triage labels Mar 8, 2025
Copy link
Member

Not sure to understand your issue, you should use this syntax anyway:

import type { FormSubmitEvent } from '#ui/types';

@VATICAN-PSYCHO
Copy link
Author

VATICAN-PSYCHO commented Mar 8, 2025

Well, i'm was pretty sure that i made it the same way as in the docs. But now i see, that no. Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants