Open
Description
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.ts
import { FontSizes, FontWeights, ITheme, IStyle } from "@fluentui/react";
// This expression's inferred type depends on @fluentui/merge-styles
export const something = { ...
@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