Skip to content

No such file or directory for non-hoisted dependencies #82

Description

@tsnobip

I'm using a yarn v4.0 monorepo setup and I can't build using rewatch because non-hoisted dependencies cause the following error:

[1/7] 🌴  Building package tree...[1/2] ️🛑   Error building package tree (are node_modules up-to-date?)... 
 More details: No such file or directory (os error 2)%     

I have such a file tree:

monorepo
├── node_modules
└── packages
     └── packageA
           └──node_modules
               └── @rescript/react

dependencies in rescript.json/bsconfig.json that are in the top level node_modules don't cause issues, only the ones inside the package node_modules, like @rescript/react in this case.

Could be related to #74.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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