masotime / json-url

Compress JSON into compact base64 URI-friendly notation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Loading chunk 0 failed.

davidhpark opened this issue · comments

GET http://localhost:3000/json-url-msgpack.js 404 (Not Found)

Refused to execute script from 'http://localhost:3000/json-url-msgpack.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

json-url.js:1 Uncaught (in promise) Error: Loading chunk 0 failed.
    at HTMLScriptElement.e (json-url.js:1)

Trying to run the example and I ran into this issue. Is this related at all to #5?

Yeah Webpack integration is borked currently, let me look into it.

Hmm... the example should work though.

Are you running the example using npm run example? The web server you're using doesn't seem to be returning the right MIME type for Javascript files.

Is there a way to bypass the GET request the package makes and directly convert from the JSON to URL?

So I've started looking into this, but GDPR is consuming a lot of my time - still, I have a few ideas that may work out.

Same problem here with Browserify, any good workaround for now?

+1

@username99987 - I've updated the module with a single-bundle fix for Webpack for 2.4.0. Can you try it out?

Closing for now. Please re-open if the issue still persists.