You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I'm trying to do an npm build of my react app and trying to serve it from my express server, the entire layout crashes. It works fine when running in development mode without build.
To Reproduce
Steps to reproduce the behavior:
Add the Carousel component as usual.
Do an npm run build and proxy it from the express server. The script I'm using to do this is as follows
npm run build --prefix ../client && NODE_ENV=production nodemon app.js
The app crashes with the error Error: "a" is read-only.
Expected behavior
No error should occur as with running in development.
Screenshots
Environment
please paste the result of npx envinfo --system --binaries --browsers --npmPackages '@brainhubeu/*'
Describe the bug
When I'm trying to do an
npm build
of my react app and trying to serve it from my express server, the entire layout crashes. It works fine when running in development mode without build.To Reproduce
Steps to reproduce the behavior:
npm run build
and proxy it from the express server. The script I'm using to do this is as followsError: "a" is read-only
.Expected behavior
No error should occur as with running in development.
Screenshots
Environment
npx envinfo --system --binaries --browsers --npmPackages '@brainhubeu/*'
Additional context
Works fine in development but breaks when served after build.
The text was updated successfully, but these errors were encountered: