kachick / depop

🙈 :star: Chrome extension to hide stars, followers and watchers on GitHub
https://chrome.google.com/webstore/detail/eyes-away-from-github-pop/bblbchjekobacogfioehogggccfagkmk
MIT License
1 stars 1 forks source link

esm.sh is also unstable #143

Closed kachick closed 2 months ago

kachick commented 2 months ago
error: Integrity check failed for remote specifier. The source code is invalid, as it does not match the expected hash in the lock file.

  Specifier: https://esm.sh/stable/react@18.2.0/denonext/jsx-runtime.js
  Actual: 309faa58fa4e914707daffa1a9514bef4593c952f930640cf93bb871aab7ceb6
  Expected: 54d8a51c6ca025380abd2d5302e4a9b38ff835d9759c4657e52314f587eaf6bf

This could be caused by:
  * the lock file may be corrupt
  * the source itself may be corrupt

Use the --lock-write flag to regenerate the lockfile or --reload to reload the source code from the server.

https://github.com/kachick/depop/pull/43

=>

https://github.com/kachick/depop/pull/142 https://github.com/kachick/depop/actions/runs/10691797035/job/29644832809


How about replacing it with JSR?

Or I might wrongly understand something about them...? 🤔

kachick commented 2 months ago

https://github.com/esm-dev/esm.sh/issues/519 https://github.com/esm-dev/esm.sh/issues/614

kachick commented 2 months ago

https://esm.sh/#docs

Pinning Build Version

~At least I wish to try this first...~

Already I did https://esm.sh/v128

kachick commented 2 months ago

https://github.com/esm-dev/esm.sh/releases 🤔 However they didn't update the esm.sh version v135 since 2023...

kachick commented 2 months ago
> deno add react@18.2.0
error: jsr:react was not found.

No react in JSR https://github.com/facebook/react/issues/28971

kachick commented 2 months ago

https://docs.deno.com/runtime/fundamentals/modules/

URL imports remain supported, but we recommend using a package registry for the best experience.

kachick commented 2 months ago

When using newer deno

Warning "--lock-write" flag is deprecated and will be removed in Deno 2

https://github.com/denoland/deno/pull/24436 https://github.com/denoland/deno/pull/24355 https://github.com/denoland/deno/issues/18296

kachick commented 2 months ago

https://zenn.dev/hashrock/scraps/9e9eb8620553f7#comment-c3aa6188e61995

ije commented 2 months ago

i think the lock file break caz https://github.com/esm-dev/esm.sh/issues/874, fyi the next version v136, which i still working on it, as removed the /v135 and /stable prefix, that means we do not build modules everytime we deploy the new version that breaks deno.lock

kachick commented 2 months ago

Thank you for sharing it with me! :pray: