You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm guessing it's not being treated in the same way as a direct import and is expecting a JS Module instead of a Vue SFC. I'll look into solutions to this but I'm assuming I would need a build step to compile the SFC to a Module.
For now you can just import the component directly using import SvgIcon from '@jamescoyle/vue-icon/lib/svg-icon.vue'.
When I import SvgIcon and add it as a component, I start getting
Unexpected token <
on page refresh in a Nuxt project.Sample code
The text was updated successfully, but these errors were encountered: