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

Prebundling does not work with flowbite-svelte #463

Closed
benmccann opened this issue Oct 14, 2022 · 1 comment
Closed

Prebundling does not work with flowbite-svelte #463

benmccann opened this issue Oct 14, 2022 · 1 comment
Labels
bug Something isn't working triage Awaiting triage by a project member

Comments

@benmccann
Copy link
Member

Describe the bug

The example on the Flowbite Svelte getting started page results in 236 requests being made.

Enabling the prebundleSvelteLibraries there results in breakage when rendering:

Uncaught SyntaxError: ambiguous indirect export: default [AccordionItem.svelte:35:7](http://127.0.0.1:5173/node_modules/.pnpm/flowbite-svelte@0.27.4/node_modules/flowbite-svelte/accordions/AccordionItem.svelte?v=90fca3b2)

And the specific line that it references:

import classNames from '/node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js?v=363d9cb2';

If I remove the experimental pre-bundle config the app renders fine.

Using a deep import drops the number of requests down to a more reasonable 25.

Originally posted by @blitzd in #421 (comment)

Reproduction

https://flowbite-svelte.com/pages/getting-started

Logs

No response

System Info

?

Severity

annoyance

@benmccann benmccann added bug Something isn't working triage Awaiting triage by a project member labels Oct 14, 2022
@benmccann
Copy link
Member Author

@blitzd I cannot reproduce this issue. I followed the flowbite-svelte getting started guide and enabled prebundling and do not see any errors. I pushed my code to this repository: https://github.com/benmccann/flowbite-svelte-reproduction

Please provide a reproduction if you are still hitting this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Awaiting triage by a project member
Projects
None yet
Development

No branches or pull requests

1 participant