Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Uniglu's avatar

Laravel + React w/Vite deployment on Vercel

Hello devs! I have a project developed in Laravel that has React installed using Vite. I don't have much experience in deploying applications, and I'm having a hard time with it.

So far, what I have done at Vercel has been:

  • Upload the project.
  • Configure the database and connect it to the project.
  • Follow the guide on Youtube: LARAVEL DEPLOY TO VERCEL IN 5 MINUTES
  • Set some environment variables (APP_URL, ASSET_URL, APP_ENV...)

I am getting the following error: app-72a9dfc3.js:1 - Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

Thanks!

0 likes
1 reply

Please or to participate in this conversation.