You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my monorepo, all lib packages are compiled on their own (just tsc transpile, no bundlers), tsc needs to export type declarations to make code editor happy. Since tsc needs to export declaration, and BlockSelectionPlugin referenced an internal type ChangedElements, caused tsc fail. This error can not be ignored by @ts-ignore, because it is not a type check error, tsc can not generate type declarations.
To reproduce this problem, the key is set declaration to true in tsconfig.json , if declaration is set to false, tsc won't fail.
Reproduction URL
No response
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
Plate version
45.0.9
Slate React version
0
Screenshots
Logs
Browsers
No response
The text was updated successfully, but these errors were encountered:
Description
The following code (copied from potion):
tsc
complainsChangedElements
is not exported:My local env: a monorepo, an
web
app and apotion-editor
lib (code copied from potion), inpotion-editor
lib, tsconfig.json is like:in my monorepo, all lib packages are compiled on their own (just
tsc
transpile, no bundlers), tsc needs to export type declarations to make code editor happy. Since tsc needs to export declaration, andBlockSelectionPlugin
referenced an internal typeChangedElements
, caused tsc fail. This error can not be ignored by@ts-ignore
, because it is not a type check error, tsc can not generate type declarations.To reproduce this problem, the key is set
declaration
totrue
intsconfig.json
, ifdeclaration
is set tofalse
, tsc won't fail.Reproduction URL
No response
Reproduction steps
Plate version
45.0.9
Slate React version
0
Screenshots
Logs
Browsers
No response
The text was updated successfully, but these errors were encountered: