-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
createRequire(import.meta.url)
doesn't work from jsr
registry
#25071
Comments
It's expected behaviour. Ideally this package should instead probably do: import packageJson from "npm:typia@^6.8.0/package.json" with { type: "json" }; |
Hi! |'m the author of this library. |
okay, thanks for clarification, I'll note |
We tried those two methods above, but some users reported issues related to these implementations. so I use the If you have some idea for this issue, send us a patch It's easy to say "anti-pattern". We are willing to support much environments as possible. DO NOT MAKE US SAD. |
My intention with this issue was to clarify whether
I will send a patch when/if I find free time to find any solution for this issue. |
@dsherret, that being said, I find it very alarming that I can have a package that works locally with |
When developing the package is in the current directory with We're going to add a jsr lint rule for |
deno 1.45.5
I'm running this code:
Which internally does this:
createRequire
fails becauseimport.meta.url
is an http url, and it expects a file pathPlease advice whether that's intended behavior.
If it is, perhaps it needs more clear error message (i.e. "you can't require things in this context, here are workarounds").
The text was updated successfully, but these errors were encountered: