-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Description
Bug Report
π Search Terms
yarn
yarn3
pnp
berry
cannot find module
π Version & Regression Information
4.5.x
- This changed between versions 4.4 and 4.5___
β― Playground Link
N/A, view repo below
Playground link with relevant code
π» Code
Minimal reproducible repo here: https://github.com/billyvg/yarn-pnp-ts-4.5
git clone
yarn
yarn tsc
π Actual behavior
It fails to build: https://github.com/billyvg/yarn-pnp-ts-4.5/runs/4268834214?check_suite_focus=true#step:5:4
migrations/20210209131202_initial-schema.ts:1:22 - error TS2307: Cannot find module 'knex' or its corresponding type declarations.
1 import { Knex } from 'knex';
π Expected behavior
It should build successful. If I change nodeLinker
to node-modules
(instead of pnp
), [email protected]
works fine. Likewise, downgrading to [email protected]
will also work with PnP.
kachkaev
Metadata
Metadata
Assignees
Labels
No labels