terlebach's avatar

Different results in dev and prod

Hello Guys!

I have a little problem with my latest project. I am building a little application with Laravel 9, Vite and InertiaJS.

I deployed the application to staging today and got a lot of errors.

I haven't seen those errors during development. I tried to run npm run dev and everything works fine. But when I compile for production with 'npm run build' I get errors in some components. Those are mostly reference errors that didn't came up in development. It is totally ok for me to be strict like in the production case but how can I ensure that the behaviour for npm run dev is the same like for npm run build?

Thanks !

1 like
4 replies
Xammy_Brand's avatar

It is 2025 and I am still looking for a solution for this, any one with any info regarding this please do share.

1 like

Please or to participate in this conversation.