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

console show [@vue/compiler-sfc] defineProps is a compiler macro and no longer needs to be imported.` #52

Closed
JobinJia opened this issue Jan 15, 2022 · 0 comments

Comments

@JobinJia
Copy link

Is your feature request related to a problem? Please describe.
i use this lib, it show me [@vue/compiler-sfc] defineProps is a compiler macro and no longer needs to be imported. in console

Describe the solution you'd like
see source, find .vue component use setup script, import defineProps from vue.
but the defineProps function is macro function.
so
just remove import { defineProps } from 'vue' with .vue file can resolve this warnning

Describe alternatives you've considered
remove import { defineProps } from 'vue to fix it

Additional context

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

1 participant