-
Notifications
You must be signed in to change notification settings - Fork 46
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
esbuild-darwin-64 missing (Apple Silicon) #51
Comments
Hi @ong-yinggao98, thanks for reporting the bug! If you'd like a temporary workaround, you can check out #49 (reply in thread) |
Hmmm I've tried removing the |
Thank you for trying this out, and sorry it didn't fix it for you! Can you also confirm whether you're using the "Universal" or "Apple Silicon" version of VS Code? |
Argh, I realised I was using the universal version for some reason. It works perfectly fine on the native build. |
I wouldn't say that's your mistake, ideally React Preview would work either way (in fact that was the case before esbuild started using optional dependencies). I'll keep this bug open so others find the solution more easily and I'll see if I can at least make the error more helpful. |
I'm running into the same issue. I tried the temporary workaround but it didn't seem to work. The only thing that worked was downgrading to react preview to version 0.5.5. Version 0.6.0 and newer throw this error for me. |
Hi @keithkraker, just so I could try reproducing and hopefully fixing this, would you mind sharing the details of your VS Code, node and npm versions? |
Yeah, no problem. VS Code: 1.61.1 |
Describe the bug
Attempting to preview an element causes React Preview to complain that
esbuild-darwin-64
is missing. However, the package is not compatible with Apple Silicon as it is for x64 not ARM64.Reproduction
React Element
in React PreviewReact Preview version
v0.7.1
System Info
Used Package Manager
npm
Extension logs (useful for crashes)
Preview logs (useful for rendering errors)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: