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

Autocomplete isn't a valid SSR component #182

Open
paul-schwendenman opened this issue Aug 1, 2022 · 1 comment
Open

Autocomplete isn't a valid SSR component #182

paul-schwendenman opened this issue Aug 1, 2022 · 1 comment

Comments

@paul-schwendenman
Copy link

I am not sure what exactly is causing this but when I try to use this library in my sveltekit project I get an error:

<AutoComplete> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules

Error: <AutoComplete> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules

I am adding simple-svelte-autocomplete to my devDependencies.

If I copy the whole component into my project I don't get the error, so maybe the issue is in the packaging somehow?

I'll try to update this issue if I learn anything else, but I didn't want to forget to make it

@absowoot
Copy link

I was having the same issue changing the import to the following is my current work-around

import AutoComplete from "simple-svelte-autocomplete/src/SimpleAutocomplete.svelte";

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

2 participants