Closed pvdstel closed 1 week ago
Confirmed that this only affects the one module:
❯ rg "'shared/" '.ts-temp/'
.ts-temp/lexical-utils/src/index.d.ts
13:export { CAN_USE_DOM } from 'shared/canUseDOM';
14:export { CAN_USE_BEFORE_INPUT, IS_ANDROID, IS_ANDROID_CHROME, IS_APPLE, IS_APPLE_WEBKIT, IS_CHROME, IS_FIREFOX, IS_IOS, IS_SAFARI, } from 'shared/environment';
Lexical version: 0.14.5, change introduced in 0.14.4 (via #5831).
Steps To Reproduce
index.ts
in VSCode with the following contents:CAN_USE_DOM
. TypeScript will be complaining:The same is true for
shared/environment
.It should be noted that this is merely a TypeScript issue, as the names are exported from the JS bundles.
The current behavior
TypeScript is showing errors since the private module
shared
cannot be found. This is affecting TypeScript projects that use Lexical 0.14.5.The expected behavior
The declarations of these variables should not rely on the private package.