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 am on the latest version of Snowpack & all plugins.
I use package manager npm
I run Snowpack on OS Mac (Fill in: Windows, Mac, Linux, etc).
I run Snowpack on Node.js v12+
I'm using source: "remote"
Describe the bug
I'm test migrating a create-react-app app over to snowpack, so I can learn about the benefits, etc of Snowpack.
I've found that, in migrating over, I can't get the app to boot because of an error in the browser console
Failed to load module script: The server responded with a non-JavaScript MIME type of "application/json". Strict MIME type checking is enforced for module scripts per HTML spec.
As far as I can tell, this isn't a JSON file I'm importing myself - indeed the file referenced seems to be http://localhost:8080/_snowpack/pkg/-/entities@v1.1.2-8Cauvwsy6UxU2k1OBsYo/dist=es2020,mode=imports/unoptimized/maps/decode.json. It don't know what package is loading "entities". (But if I had to make a wild guess, I'd assume it's Amplify...)
I've seen similar tickets to this issue, such as #3194, #3109 and #3282. That last one is especially interesting as it says a user had some success downgrading
Same problem for me on 3.3.6. But i was able to build on 3.0.13
If I downgrade to that version, I instead get another error, where all of my dependencies in the browser throw the error Too many redirects before it gets to the point of throwing the JSON error above (I presume). #2345 suggests that that error is caused by plugin-react-refresh, but disabling that plugin doesn't solve anything.
To Reproduce
We can't fix bugs that we can't see for ourselves. Issues often need to be closed if this section is skipped.
Bug Report Quick Checklist
source: "remote"
Describe the bug
I'm test migrating a create-react-app app over to snowpack, so I can learn about the benefits, etc of Snowpack.
I've found that, in migrating over, I can't get the app to boot because of an error in the browser console
As far as I can tell, this isn't a JSON file I'm importing myself - indeed the file referenced seems to be
http://localhost:8080/_snowpack/pkg/-/entities@v1.1.2-8Cauvwsy6UxU2k1OBsYo/dist=es2020,mode=imports/unoptimized/maps/decode.json
. It don't know what package is loading "entities". (But if I had to make a wild guess, I'd assume it's Amplify...)I've seen similar tickets to this issue, such as #3194, #3109 and #3282. That last one is especially interesting as it says a user had some success downgrading
If I downgrade to that version, I instead get another error, where all of my dependencies in the browser throw the error
Too many redirects
before it gets to the point of throwing the JSON error above (I presume). #2345 suggests that that error is caused by plugin-react-refresh, but disabling that plugin doesn't solve anything.To Reproduce
We can't fix bugs that we can't see for ourselves. Issues often need to be closed if this section is skipped.
npm init snowpack-app --template @snowpack/app-template-react
localhost:8080
and wait for everything to loadExpected behavior
The app doesn't get stuck trying to load JSON. Potentially even boots up
Anything else?
I'll attach my deps here, didn't want to put them inline as it ends up cluttering the ticket
The text was updated successfully, but these errors were encountered: