-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
https://unpkg.com/mithril-stream is missing with 404 #2344
Comments
I'm fairly certain this is an issue with unpkg.com, they are ignoring the main module name in the package.json of the project and redirecting to index.js for all packages. You can follow the issue here: unpkg/unpkg#156 |
That said, the mithril-stream npm package may be out of date, hasn't been updated for over a year. The docs recommend using the So I guess the package should be updated or that recommendation should be changed. I usually fetch it like this: https://unpkg.com/mithril@next/stream/stream.js |
Closing, since that's unpkg's problem, not ours. (You can always host the script on your own servers - it's pretty easy to do.) |
@isiahmeadows Well, maybe at least the documentation should be changed then. It stopped working yesterday by the way. I now host the file myself. |
@iaddict BTW, it should be working again. But as it stands, unpkg issues aren't generally things we can do anything about on our end, and best practice in general (for any framework or library, not just Mithril) is that if you need guarantees about availability, host it on servers you control rather than relying on a public CDN to host it for you. |
@isiahmeadows You may have missed my earlier comment, or misunderstood it or @iaddict 's.
Were you aware of this npm package? |
New issue I guess? |
@fuzetsu File a new issue - that hasn't been republished in quite a while. It probably wouldn't be a terrible idea to have those updated as well, but this issue was about unpkg returning erroneous 404s and wrong files (I reproduced their issue with https://unpkg.com/mithril as well), not an outdated bundle. |
Mithril Version: 1.0.0
https://unpkg.com/mithril-stream is not available anymore.
Expected Behavior
unpkg responds with the mithril-stream library.
Current Behavior
When trying to access the stream library at https://unpkg.com/mithril-stream a 404 response is returned.
The text was updated successfully, but these errors were encountered: