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
Failed to load module script: The server responded with a non-JavaScript MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
I'm having troubles using the default
start
script inpackage.json
.The default one is:
but I'm building a SPA (single page application) and I changed it to:
adding also in
index.html
's<head>
:But now the problem is:
In browser's console I got this error:
I need to change it like this to work:
adding
./src
before/my-app.js
.The problem now is using
npm run build
: it doesn't findmy-app.js
during build.I'm wrong somewhere, but where?
The text was updated successfully, but these errors were encountered: