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

Nested async components error when switching components #71

Closed
telemmaite opened this issue Oct 16, 2019 · 1 comment
Closed

Nested async components error when switching components #71

telemmaite opened this issue Oct 16, 2019 · 1 comment

Comments

@telemmaite
Copy link

Hello, please take a look at the following two comments.
sveltejs/svelte#3448 (comment)
sveltejs/svelte#3448 (comment)

I think as mentioned here:

In the end @halfnelson came up with a solution where the pre-built component should declare at least the svelte/internal imports as globals (rollup) or externals (webpack).
You can see that comment and my comment afterwards stating what I did here: #3671 (comment)
If this is the problem that's being discussed here then it would seem that projects distributing pre-built Svelte components should set their bundles to be built expecting at least the svelte/internal import to be provided as a global somewhere.

I guess that sveltestrap case is to expect global svelte/internal import npm install --save svelte sveltestrap.

@bestguy
Copy link
Owner

bestguy commented Oct 19, 2019

Thanks for the heads up @telemmaite
We've had a lot of trouble know what the 'official' support for pre-bundled components are -
there's been SSR issues, suggestions to add svelte source files to bundle, etc.
Svelte 3 seems like a work in progress in this area compared to Svelte 1-2...

I'll see what we can do to improve this, thanks for the issue links

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