-
Notifications
You must be signed in to change notification settings - Fork 921
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
[BUG] Built-in bundler yield invalid react app #3282
Comments
Also experiencing this issue. Update: Tried again--3.3.6 isn't working, I probably forgot to update deps. 3.0.13 is working and 3.1.0 is not. |
@azuline Same problem for me on |
Strange! Here is my config: https://github.com/azuline/repertoire/tree/master/frontend. |
Might be caused by #3109, try using this workaround. |
Hi there,
I'm trying to bundle my latest react app using snowpack's built-in bundler (esbuild) and I'm having issues running the produced build.
The build run without errors. But when I serve the build folder and access my app via the browser, I see only a white screen.
Upon inspection, it seems that the bundle is fetched by the HTML, but doesn't seem to be executed. Also something I noticed is that img assets are loaded by the code as "scripts" thus producing errors.
The error dont seems to come from the "mimifying" as, if I leave
minify: true
and turnbundle
tofalse
, the app runs normally.What is even weirder is that, I'm building all my react projects with the exact same config and never had an issue.
Reproduce
npx create-snowpack-app react-snowpack --template @snowpack/app-template-react-typescrip cd react-snowpack npm i npm run build serve /build
My snowpack config (i'm running snowpack
3.3.7
)My
tsconfig.json
Where should I look into ?
Cheers!
The text was updated successfully, but these errors were encountered: