How import a component defined by setup? #5934
Answered
by
tony19
yoyo837
asked this question in
Help/Questions
-
I got |
Beta Was this translation helpful? Give feedback.
Answered by
tony19
May 17, 2022
Replies: 1 comment 2 replies
-
Sounds like you're trying to use named imports like this: import { Layout } from './components/common/Layout.vue' But the component only has a default export (as indicated in the error message), so just import it as: import Layout from './components/common/Layout.vue' |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yoyo837
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sounds like you're trying to use named imports like this:
But the component only has a default export (as indicated in the error message), so just import it as: