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

Incorrect import in ScrollArea #829

Closed
phenomen opened this issue Oct 28, 2024 · 4 comments
Closed

Incorrect import in ScrollArea #829

phenomen opened this issue Oct 28, 2024 · 4 comments
Labels
needs reproduction A reproduction is required to further investigate this issue not enough info Not enough information was provided to address the issue

Comments

@phenomen
Copy link

phenomen commented Oct 28, 2024

Describe the bug

ScrollArea component from shadcn-svelte throws an error referencing bits-ui

Reproduction

https://stackblitz.com/~/github.com/phenomen/repro-astro-svelte5-shadcn

Logs

TypeError: Cannot read properties of undefined (reading 'Symbol(filename)')
    at Module.push_element (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\svelte@5.1.4\node_modules\svelte\src\internal\server\dev.js:70:70)
    at Module.Scroll_area (D:/Github/repro-astro-svelte5-shadcn/node_modules/.pnpm/bits-ui@1.0.0-next.32_svelte@5.1.4/node_modules/bits-ui/dist/bits/scroll-area/components/scroll-area.svelte:47:25)
    at $$render_inner (D:/Github/repro-astro-svelte5-shadcn/src/lib/components/ui/scroll-area/scroll-area.svelte:35:36)
    at Module.Scroll_area (D:/Github/repro-astro-svelte5-shadcn/src/lib/components/ui/scroll-area/scroll-area.svelte:104:3)
    at ScrollAreaDemo (D:/Github/repro-astro-svelte5-shadcn/src/lib/components/svelte/ScrollAreaDemo.svelte:28:24)
    at Module.render (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\svelte@5.1.4\node_modules\svelte\src\internal\server\index.js:117:2)
    at Object.renderToStaticMarkup (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\@astrojs+svelte@6.0.0-beta.1_astro@5.0.0-beta.5_@types+node@22.8.4_rollup@4.24.3_typescript@5_4tahi2brmoobx2f2hxzhlkqb4a\node_modules\@astrojs\svelte\server-v5.js:34:17)
    at renderFrameworkComponent (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\astro@5.0.0-beta.5_@types+node@22.8.4_rollup@4.24.3_typescript@5.6.3\node_modules\astro\dist\runtime\server\render\component.js:220:66)
    at async Module.renderComponent (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\astro@5.0.0-beta.5_@types+node@22.8.4_rollup@4.24.3_typescript@5.6.3\node_modules\astro\dist\runtime\server\render\component.js:373:10)
    at async Module.renderChild (D:\Github\repro-astro-svelte5-shadcn\node_modules\.pnpm\astro@5.0.0-beta.5_@types+node@22.8.4_rollup@4.24.3_typescript@5.6.3\node_modules\astro\dist\runtime\server\render\any.js:9:13)

System Info

shadcn-svelte@next, bits-ui@1.0.0-next.32

Severity

blocking an upgrade

@huntabyte
Copy link
Owner

I need a reproduction to troubleshoot this because I can't reproduce.

@huntabyte huntabyte added the needs reproduction A reproduction is required to further investigate this issue label Oct 28, 2024
Copy link
Contributor

github-actions bot commented Oct 28, 2024

Please provide a reproduction.

More info

Why do I need to provide a reproduction?

This project is maintained by a very small team, and we simply don't have the bandwidth to investigate issues that we can't easily replicate. Reproductions enable us to fix issues faster and more efficiently. If you care about getting your issue resolved, providing a reproduction is the best way to do that.

I've provided a reproduction - what happens now?

Once a reproduction is provided, we'll remove the needs reproduction label and review the issue to determine how to resolve it. If we can confirm it's a bug, we'll label it as such and prioritize it based on its severity.

If needs reproduction labeled issues don't receive any activity (e.g., a comment with a reproduction link), they'll be closed. Feel free to comment with a reproduction at any time and the issue will be reopened.

How can I create a reproduction?

You can use Stackblitz to create a minimal reproduction. You can also link to a GitHub repository with the reproduction.

Please ensure that the reproduction is as minimal as possible. If there is a ton of custom logic in your reproduction, it is difficult to determine if the issue is with your code or with the library. The more minimal the reproduction, the more likely it is that we'll be able to assist.

You might also find these other articles interesting and/or helpful:

@huntabyte huntabyte added the not enough info Not enough information was provided to address the issue label Oct 29, 2024
@phenomen
Copy link
Author

phenomen commented Oct 29, 2024

@phenomen
Copy link
Author

Fixed in esm-env@1.1.2
benmccann/esm-env@08ba4c2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction A reproduction is required to further investigate this issue not enough info Not enough information was provided to address the issue
Projects
None yet
Development

No branches or pull requests

2 participants