Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set explicit build dir in Vite to resolve Expected a JavaScript module on rebuild error #3368

Merged
merged 2 commits into from
May 15, 2023

Conversation

wssheldon
Copy link
Contributor

Resolves:

Expected a JavaScript module script but the server responded with a MIME type of "text/html" in Vue with Vite

https://vitejs.dev/guide/build.html#public-base-path
https://axellarsson.com/blog/expected-javascript-module-script-server-response-mimetype-text-html/

@wssheldon wssheldon added bug Something isn't working UI/UX labels May 5, 2023
@wssheldon wssheldon requested a review from mvilanova May 5, 2023 19:53
@kevgliss kevgliss self-requested a review May 8, 2023 18:02
@kevgliss kevgliss merged commit ded74a6 into master May 15, 2023
@kevgliss kevgliss deleted the bugfix/vite-build branch May 15, 2023 15:46
kevgliss added a commit that referenced this pull request May 15, 2023
kevgliss added a commit that referenced this pull request May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants