Replies: 13 comments 12 replies
-
|
I create 2 projects with vue using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I was able to fix this similar issue, which I deployed on github via the |
Beta Was this translation helpful? Give feedback.
-
|
same here... my |
Beta Was this translation helpful? Give feedback.
-
|
I am still getting this error and my vite.config.ts looks like this
|
Beta Was this translation helpful? Give feedback.
-
|
Also, make sure that whether it works or not in If you have it WILL NOT WORK, and you'll also get this error. |
Beta Was this translation helpful? Give feedback.
-
|
How to solve this type i already did the base: './' |
Beta Was this translation helpful? Give feedback.
-
|
If someone is getting this problem while dealing with nginx configuration, this might be helpful. In your |
Beta Was this translation helpful? Give feedback.
-
|
My solution
|
Beta Was this translation helpful? Give feedback.
-
|
I had the same error. instead of: do this: |
Beta Was this translation helpful? Give feedback.
-
what's will be the solve?
|
Beta Was this translation helpful? Give feedback.
-
|
I spent two days investigating the issue: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "''. Strict MIME type checking is enforced for module scripts per HTML spec. Initially, I used the following commands to build and run the dist folder locally: However, after some investigation, I discovered that the issue was caused by the command I used to serve the dist folder. |
Beta Was this translation helpful? Give feedback.
-
|
In my case, I deployed my Vue + Vite app on Forge and initially selected ‘Other’ as the site type. But it only started working after I changed the site type to ‘Static HTML’. I also added pnpm build to the deployment script so the build command runs automatically. After doing that, everything started working again.” Also as this is a static VueJS project that builds to the "dist" folder, I have changed the Web Directory here (https://forge.laravel.com/usernam/servername/xxx/settings) to /dist which means that Nginx will now be serving the built files from the right folder. |
Beta Was this translation helpful? Give feedback.




Uh oh!
There was an error while loading. Please reload this page.
-
I created vue page by
yarn create vite(yarn -v:1.22.19)
Although I can see the page on localhost, I faced following error after I deployed it on AWS S3.
Here is Chrome console.

I have no idea how to solve it.
Beta Was this translation helpful? Give feedback.
All reactions