Skip to content

Problem with local packages in turborepo #182

@motiejunas

Description

@motiejunas

I have this dependency in my app package.json:
"lib": "file:../../packages/lib"

lib package.json:

{
"name": "lib",
"version": "0.0.0",
"main": "./src/index.ts",
"types": "./src/index.ts"
}

I get this error when run npm install:

☔️ error api has a dependency on lib@file:../../packages/lib but the version of lib in the repo is 0.0.0 which is not within range of the depended on version, please update the dependency version
☔️ info the above errors may be fixable with yarn manypkg fix

I think this is a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions