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
I have a vue app that works without problems when executed in kubernetes on a single pod without replication.
However, as soon as I try to replicate, it doesn't work anymore and it throws this kind of errors in the browser console when it tries to read content from node_modules/.vite (that I think is the vite cache):
Loading module from “https://srsproject.it/node_modules/.vite/deps/auth0.js?v=0a5335c3” was blocked because of a disallowed MIME type (“”). Loading module from “https://srsproject.it/node_modules/.vite/deps/chunk-U6BEPC57.js?v=ddbe559a” was blocked because of a disallowed MIME type (“”).
Install docker, kubectl and minikube
Download all files in the repo and cd into the folder
Run minikube delete
Run minikube start
Run helm install nginx-ingress ingress-nginx/ingress-nginx
In /etc/hosts pair srsproject.it with the ip returned by the command minikube ip
In another terminal, run minikube tunnel
Run kubectl apply -f .
Run kubectl delete ingress client-ingress
Run minikube dashboard
A dashboard window will open in your browser, go to "Deployments", open "client-deployment"
On the top right press "Scale resource" and scale it to 2
Open a browser tab, press CTRL+Shift +I, open srsproject.it in that window
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
The problem was that i was using the development version of the app on kubernetes. You must use the production version, that is generated with vite build or npm run build, if you have it configured in your package.json
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
I have a vue app that works without problems when executed in kubernetes on a single pod without replication.
However, as soon as I try to replicate, it doesn't work anymore and it throws this kind of errors in the browser console when it tries to read content from node_modules/.vite (that I think is the vite cache):
Loading module from “https://srsproject.it/node_modules/.vite/deps/auth0.js?v=0a5335c3” was blocked because of a disallowed MIME type (“”).
Loading module from “https://srsproject.it/node_modules/.vite/deps/chunk-U6BEPC57.js?v=ddbe559a” was blocked because of a disallowed MIME type (“”).
Reproduction
https://github.com/ZioPhil/SrsProjectReproduction
Steps to reproduce
Install docker, kubectl and minikube
Download all files in the repo and cd into the folder
Run
minikube delete
Run
minikube start
Run
helm install nginx-ingress ingress-nginx/ingress-nginx
In
/etc/hosts
pair srsproject.it with the ip returned by the commandminikube ip
In another terminal, run
minikube tunnel
Run
kubectl apply -f .
Run
kubectl delete ingress client-ingress
Run
minikube dashboard
A dashboard window will open in your browser, go to "Deployments", open "client-deployment"
On the top right press "Scale resource" and scale it to 2
Open a browser tab, press
CTRL+Shift +I
, opensrsproject.it
in that windowSystem Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: