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

Issue with a Solid web components and Astro #11997

Closed
1 task
jefer94 opened this issue Sep 14, 2024 · 1 comment
Closed
1 task

Issue with a Solid web components and Astro #11997

jefer94 opened this issue Sep 14, 2024 · 1 comment
Labels
needs triage Issue needs to be triaged

Comments

@jefer94
Copy link

jefer94 commented Sep 14, 2024

Astro Info

jefer@Jeferson ~/d/e/word-list> bun run astro info
$ astro info
Astro                    v4.15.4
Node                     v22.8.0
System                   Linux (x64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             @astrojs/tailwind
                         @astrojs/solid-js
                         astro-compressor
                         astro-purgecss
                         @astrojs/lit
which: no xclip in (/home/jefer/dev/experiments/word-list/node_modules/.bin:/home/jefer/dev/experiments/word-list/node_modules/.bin:/home/jefer/dev/experiments/node_modules/.bin:/home/jefer/dev/node_modules/.bin:/home/jefer/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/home/jefer/.local/bin:/home/jefer/.bun/bin:/home/jefer/.cursor-server/bin/63dae81aea2c3fc079420fe72578a8eef26ba870/bin/remote-cli:/home/jefer/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Users/jefer/AppData/Local/Programs/cursor/resources/app/bin:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/Hatch/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Python312/Scripts/:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Python312/:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/jefer/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/jefer/AppData/Local/Microsoft/WinGet/Packages/Oven-sh.Bun_Microsoft.Winget.Source_8wekyb3d8bbwe/bun-windows-x64:/mnt/c/Users/jefer/AppData/Local/Programs/cursor/resources/app/bin:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Python312/Scripts/:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Python312/:/mnt/c/Users/jefer/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/jefer/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/jefer/AppData/Local/Programs/Microsoft VS Code Insiders/bin:/mnt/c/Users/jefer/AppData/Local/Microsoft/WinGet/Packages/Oven-sh.Bun_Microsoft.Winget.Source_8wekyb3d8bbwe/bun-windows-x64:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/jefer/.local/bin)
jefer@Jeferson ~/d/e/word-list>

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

solidjs/solid#2277

What's the expected result?

solidjs/solid#2277

Link to Minimal Reproducible Example

solidjs/solid#2277

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Sep 14, 2024
@matthewp
Copy link
Contributor

Looks like a problem with running bun build which compiles to React and not Solid. That's a problem with Bun (or more likely, it's not being configured properly, but definitely doesn't have anything to do with Astro, so closing.

You don't need to use a different bundler with Astro, you can just put that Solid component inside of src/ and load it from there and it will be compiled properly. No bun build needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants