npm run build runs successful but site does not work on server #3766
Unanswered
rico
asked this question in
Help needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is the right place to ask, but maybe someone experienced something similar. It is a Laravel / Inertia (Vue 3) project.
When I build my (js) assets on the server using
npm run build
in a task everything seems to work fine, but as soon as I try to access the page, the assets load, but the page crashes. Now to the part where it gets difficult - no error or warning during the build process, no error in the console or the server / Laravel logs, just no information about what might be wrong.Only thing that works is copying the locally built assets to the server.
I have almost the same node version locally (v20..9.0) as on the server (v20.11.0).
Anybody has an idea how to debug this?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions