cannot build package with project references #260
Labels
kind: bug
Something isn't working properly
problem: no repro
No reproduction was provided (and have not tried to repro without one)
scope: upstream
Issue in upstream dependency
solution: workaround available
There is a workaround available for this issue
topic: monorepo / symlinks
Related to monorepos and/or symlinks (Lerna, Yarn, PNPM, Rush, etc)
What happens and why it is wrong
I am trying to build in a package that has project references in the tsconfig.json
The project builds fine if I run
yarn run tsc --build
but fails when using rollup and therollup-plugin-typescript2
.I can see in the source that if the tsconfig has project references then files from the references are included:
Which will create an array of globs like this:
I then get this error:
Reading that error, I would then need to update my tsconfig.json to this:
I ten get this error:
Looking at the source, I don't see anywhere that takes into account a project references build apart from the filter code I pasted at the start.
Versions
rollup.config.js
`rollup.config.js`:
tsconfig.json
`tsconfig.json`:
plugin output with verbosity 3
plugin output with verbosity 3:
The text was updated successfully, but these errors were encountered: