You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Make sure you can use yarn berry to check the example (similar issue occurs with previous yarn version)
git clone https://github.com/deeeed/demo-yarn-workspaces.git
cd demo-yarn-workspaces
yarn
cd packages/app
Failed rollup config
~/Projects/demo-yarn-workspaces/packages/app v16.16.0
▷ yarn build ! main
src/app.ts → dist...
[!] (plugin typescript) Error: Debug Failure. False expression.
at updateExtendedConfigFilesWatches (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:123065:13)
at watchReferencedProject (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:123160:7)
at Object.getParsedCommandLine (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:122961:7)
at parseProjectReferenceConfigFile (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:117987:28)
at Array.map (<anonymous>)
at createProgram (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:116040:57)
at getBuilderCreationParameters (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:120378:20)
at createEmitAndSemanticDiagnosticsBuilderProgram (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:120904:83)
at createNewProgram (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:122702:24)
at synchronizeProgram (/Users/test/Projects/demo-yarn-workspaces/node_modules/typescript/lib/typescript.js:122676:9)
~/Projects/demo-yarn-workspaces/packages/app v16.16.0
▷
Working rollup config without references
~/Projects/demo-yarn-workspaces/packages/app v16.16.0
▷ yarn build:ok ! main
src/app.ts → dist...
(!) Unresolved dependencies
https://rollupjs.org/troubleshooting/#warning-treating-module-as-external-dependency
@demo/common (imported by "src/app.ts")
(!) Mixing named and default exports
https://rollupjs.org/configuration-options/#output-exports
The following entry modules are using named and default exports together:
src/app.ts
Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
created dist in 537ms
~/Projects/demo-yarn-workspaces/packages/app v16.16.0
The text was updated successfully, but these errors were encountered:
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
@filiptammergard now i don't have appropriate fixes and try to fix my problem with rpt2 plugin instead of this. PR is good, but need a time for unsterstand this project and tsc project references particularities
Typescript plugin errors while using project references.
Expected Behavior
Rollup typescript should work similarly to tsc when compiling with project references.
Actual Behavior
Currently it seems to fail when asserting the referred projects.
Additional Information
I have been trying to work with a yarn3 monorepo and setup paths mapping and project references with typescript but rollup is failing to compile.
An example repro is available at demo project
I created two config files to illustrate the issue. Only difference is in the typescript configuration:
Basic project structure for the reproduction
The text was updated successfully, but these errors were encountered: