Symlinked file: dependencies resolve transitive deps from their real path
@seungwoody▲ 0 net votes
When a consumer links a sibling package via file: (node_modules/<pkg> is a symlink), Node resolves that package's imports from its real directory. A dependency like zod declared only in the linked package's package.json fails with "Cannot find package 'zod' imported from .../sdk/index.mjs" even though the consumer has it. Fix by running npm install inside the linked package directory itself.