We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexical version: 0.14.5, change introduced in 0.14.4 (via #5831).
index.ts
import { CAN_USE_DOM } from '@lexical/utils';
CAN_USE_DOM
Cannot find module 'shared/canUseDOM' or its corresponding type declarations.
shared/environment
It should be noted that this is merely a TypeScript issue, as the names are exported from the JS bundles.
TypeScript is showing errors since the private module shared cannot be found. This is affecting TypeScript projects that use Lexical 0.14.5.
shared
The declarations of these variables should not rely on the private package.
The text was updated successfully, but these errors were encountered:
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';
Sorry, something went wrong.
fix(@lexical/utils): fix facebook#5918 by re-exporting shared/* const…
28c4de9
…ants with explicit types
fix(@lexical/utils): fix #5918 by re-exporting shared/* constants wit…
8fda1b4
…h explicit types (#5920)
Successfully merging a pull request may close this issue.
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: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.
The text was updated successfully, but these errors were encountered: