-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
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/@[email protected]/node_modules/@fluentui/merge-styles'. This is likely not portable. A type annotation is necessary.
π Expected behavior
No error
robpalme, renke, jondlm, mc-petry, arpowers and 30 more
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Declaration EmitThe issue relates to the emission of d.ts filesThe issue relates to the emission of d.ts filesRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone