Skip to content
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

Failed to resolve package.json dependency with a specifier of "file:{path/to/dependency}" #18961

Closed
MichaelFedora opened this issue May 2, 2023 · 2 comments
Assignees
Labels
duplicate a duplicate of another issue

Comments

@MichaelFedora
Copy link

I decided to try and run a node project of mine with the following arguments:

$ deno run --node-modules-dir --allow-env --allow-sys ./src/main.ts --ext ts

It gave back the following error:

error: Parsing version constraints in the application-level package.json is more strict at the moment.

Not implemented scheme 'file'
    at file:///{path/to/project}/src/main.ts:42:31

The library it was trying to import at :42:31 was one with the following definition in the package.json:

{
  "dependencies": {
    "@my/library": "file:ext/my-library"
  }
}

This is a relatively straightforward bug, and is pretty low-priority, but thought I'd write it up as I couldn't find a duplicate.

Thanks for working on Deno!

@bartlomieju bartlomieju self-assigned this May 2, 2023
@rajsite
Copy link

rajsite commented May 3, 2023

Seems related to: #18474

@dsherret dsherret added the duplicate a duplicate of another issue label May 3, 2023
@dsherret
Copy link
Member

dsherret commented May 3, 2023

Closing as duplicate of #18474

@dsherret dsherret closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants