Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

Wrong MIME for .mjs #1164

Open dotellie opened 6 years ago

dotellie commented 6 years ago

Polyserve doesn't seem to specify that .mjs files are JavaScript correctly, resulting in an error when trying to load them:

Failed to load module script: The server responded with a non-JavaScript MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
nickpelone commented 5 years ago

A quiet "me too" as this goofs me up some as I work to migrate some legacy Polymer 2.x stuff (finally) to modules-land.

nickpelone commented 5 years ago

Nevermind - it appears my tools were just out of date! Seems to work now.

hashamhabib commented 5 years ago

@nickpelone : I am working on a project where I have to convert an existing polymer 1.x application to polymer 3.

I am getting the following error in the browser console. I am using Apollo-client in my app.

"Failed to load module script: The server responded with a non-JavaScript MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec node_modules/graphql/index.mjs ."

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.