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

useSocialTags not defined when using Vite dev server #4

Open
bricehartmann opened this issue Dec 2, 2022 · 0 comments
Open

useSocialTags not defined when using Vite dev server #4

bricehartmann opened this issue Dec 2, 2022 · 0 comments

Comments

@bricehartmann
Copy link

When using Vite's dev server, I get the following error when attempting to use the useSocialTags composable:

ReferenceError: useSocialTags is not defined

This does not happen when building the project; only when using the dev server.

A workaround is to add the following to nuxt.config.ts:

imports: {
    dirs: [
        'node_modules/nuxt-social-tags/dist/runtime/composables',
    ],
},
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