Exported variable 'Some-Element-withRef' has or is using name 'UNDEFINED_VOID_ONLY' from external module "mono-repo-root/node_modules/@types/react/canary" but cannot be named #3127
Labels
bug
Something isn't working
Description
When using plate as a package within an Monorepo it seems to have issues passing type verification when the types defined for
react/canary
are not in the same repo as the Plate library.Steps to Reproduce
withRef
orwithHOCC
(basically one which passes ref down the tree)Repo
https://github.com/PaulSinghDev/plate-js-issue
Sandbox
Link to CodeSandbox
Expected Behavior
The app builds
Environment
Solution
Is to type the elements before exporting them.
Current
HrElement
:After update (compiling):
With the change above it seems to compile
Funding
The text was updated successfully, but these errors were encountered: