Skip to content

Does not support local file paths in package.json #855

@al6x

Description

@al6x

NPM support local file path package declaration in package.json

I specified the following dependency in my project. The VS Code can see the mypackage correctly, if you click on some function that's imported from there like mypackage/somefile - it will navigate there correctly etc.

{
  ...
  "dependencies": {
    "mypackage": "file:/myprojects/mylocalpackage"
  }
}

But when I ran it with ts-node it throw an error that it can't find mypackage/somefile package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions