Bug Report
🔎 Search Terms
cannot be named without a reference to symlink
🕗 Version & Regression Information
- This is the behavior in every version I tried
⏯ Playground Link
N/A
💻 Code
https://github.com/jcreamer898/monorepo-examples/tree/main/pnpm-example
TL;DR file layout:
// monorepo-examples\pnpm-example\packages\pkg-a\index.tsimport{FontSizes,FontWeights,ITheme,IStyle}from"@fluentui/react";// This expression's inferred type depends on @fluentui/merge-stylesexportconstsomething={ ... @fluentui/react is nested in /monorepo-examples/pnpm-example/node_modules/.pnpm/@fluentui+react
Adding a blank import to @fluentui/merge-styles in index.ts makes the problem go away
🙁 Actual behavior
src/index.ts:28:14 - error TS2742: The inferred type of 'personScopeListItemOverrides' cannot be named without a reference to '.pnpm/@fluentui+merge-styles@8.3.0/node_modules/@fluentui/merge-styles'. This is likely not portable. A type annotation is necessary.
🙂 Expected behavior
No error
Bug Report
🔎 Search Terms
cannot be named without a reference to symlink
🕗 Version & Regression Information
⏯ Playground Link
N/A
💻 Code
https://github.com/jcreamer898/monorepo-examples/tree/main/pnpm-example
TL;DR file layout:
@fluentui/reactis nested in/monorepo-examples/pnpm-example/node_modules/.pnpm/@fluentui+reactAdding a blank import to
@fluentui/merge-stylesinindex.tsmakes the problem go away🙁 Actual behavior
🙂 Expected behavior
No error