hngngn / shadcn-solid

shadcn/ui, but for Solid.
https://shadcn-solid.com
MIT License
261 stars 14 forks source link

[bug]: --bun flag causes "Export named 'addAbortListener' not found in module 'events'." error #96

Closed zoutiyx closed 3 months ago

zoutiyx commented 3 months ago

Describe the bug

Disclaimer: I understand that it's possible this might not be a shadcn-solid issue per say, but I am documenting it here for visibility as this package includes steps which produce this error.

The copy button to installing components using bun copies this command: bunx --bun shadcn-solid@latest add [component-name]

the --bun flag causes the error

1 | (function (entry, fetcher)
    ^
SyntaxError: Export named 'addAbortListener' not found in module 'events'.

Removing --bun adds the component successfully and it works fine.

Affected component/components

All components

How to reproduce

  1. Select Bun as the runtime for installing a component.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

MBP. M3 Pro. Sonoma 14.4.1
Bun => 1.0.33
Node => 22.0.0

Before submitting

hngngn commented 3 months ago

I will update this in the next update