You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a user of the postgraphile package. Because of problems with peer dependencies across different package managers, the maintainer re-exports dependent packages in the package.json as submodules, e.g., postgraphile/cli or postgraphile/grafast.
Normally this works fine, but when attempting to import from the path postgraphile/@dataplan/pg, I seem to run into an issue with the way deno is parsing the path. In my editor, it shows that the path is not found:
When I try and run a script, it gives me the following error:
> deno run -A main.ts
error: Invalid package specifier 'npm:postgraphile@^5.0.0-beta.35/@dataplan/pg'.
Did you mean to write 'npm:postgraphile@^5.0.0-beta.35@dataplan/pg/'?
at file:///Users/litewarp/projects/submodule-import/main.ts:2:32
With some research, it looks like there is a regex check somewhere in resolutions.ts set to err if the package starts with the "@" symbol.
Is there anyway to permit this given that there is no issue with other package managers? If not, is there a way to alias it to avoid this issue?
I'm a user of the postgraphile package. Because of problems with peer dependencies across different package managers, the maintainer re-exports dependent packages in the package.json as submodules, e.g.,
postgraphile/cli
orpostgraphile/grafast
.Normally this works fine, but when attempting to import from the path
postgraphile/@dataplan/pg
, I seem to run into an issue with the way deno is parsing the path. In my editor, it shows that the path is not found:When I try and run a script, it gives me the following error:
With some research, it looks like there is a regex check somewhere in resolutions.ts set to err if the package starts with the "@" symbol.
Is there anyway to permit this given that there is no issue with other package managers? If not, is there a way to alias it to avoid this issue?
Thanks in advance!
Version:
deno 2.1.2 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2
The text was updated successfully, but these errors were encountered: