Skip to content

Monrepo with project references fails to compile #26689

@raymondfeng

Description

@raymondfeng

TypeScript Version: 3.0.1

Search Terms:

Project references

Code

https://github.com/raymondfeng/learn-a/

Please follow the README.md to reproduce the problem.

npm i
npm run build

Expected behavior:

The build should be successful.

Actual behavior:

npm run build

> @ build /Users/rfeng/Projects/demos/learn-a
> tsc -b packages

packages/pkg2/src/index.ts:1:21 - error TS2307: Cannot find module '@ryancavanaugh/pkg1'.

1 import * as p1 from '@ryancavanaugh/pkg1';

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions