Skip to content

code: 'ERR_IMPORT_ASSERTION_TYPE_MISSING' #2884

Closed Answered by fzsf163
fzsf163 asked this question in Q&A
Discussion options

You must be logged in to vote

Solved it.

In remix js we have to write file name this following way to render entire component on the client,

Plate-Editor.tsx
Plate-Editor.client.tsx ✔️

Inside tooltip.tsx && draggable.tsx (components/plate-ui) <Tooltip/> must be inside <TooltipProvider/> .

then render the <EditorComponent> inside <ClientOnly /> from remix-utils/client-only

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 12joan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant