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

import type { CSSProperties } from 'vue' is error #13078

Closed
Miofly opened this issue Sep 4, 2023 · 1 comment
Closed

import type { CSSProperties } from 'vue' is error #13078

Miofly opened this issue Sep 4, 2023 · 1 comment

Comments

@Miofly
Copy link

Miofly commented Sep 4, 2023

What problem does this feature solve?

vue3
import type { CSSProperties } from 'vue' is correct

vue2.7
import type { CSSProperties } from 'vue' is error

What does the proposed API look like?

import type { CSSProperties } from 'vue' in 2.7 is correct

@xingye12
Copy link

The problem is in the code for Vue 2.7, which does not yet support the syntax for using import type. import type is the syntax in TypeScript for importing types without importing specific values. The Vue 2.x version usually uses JavaScript, not TypeScript.

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

No branches or pull requests

2 participants