#"does not provide an export named "
18 messages · Page 1 of 1 (latest)
Did you mean to write "~/components/…"?
im on windows
I already tried using the full path from /users to file.vue
The path you import from is not relevant to what OS you’re using. It’s what Nuxt regards as an alias to the root of your workspace.
should i import like this then?
Yep. Try it.
Looks like you’re not exporting hachiName as a named export. How are you exporting it in that Vue file?
how do i export it as "named export"?
im newbie with nuxt
I just created the variable and used "export" before
Is the export within script setup?
If so, that won’t work. You’ll have to create a normal <script> as well and export from there. Or as a better practice, place in a mutual js/ts file such as utils? You’d be saving yourself a lot of aggravation
yes
you don't need to import it