gloriasoft / veaury

Use React in Vue3 and Vue3 in React, And as perfect as possible!
MIT License
1.27k stars 81 forks source link

Objects are not valid as a React child #93

Open FreeLancerPT opened 11 months ago

FreeLancerPT commented 11 months ago

Hello, great work! Before i put my question, do you have discord?

I am trying to applying your code to this:

https://ui.docs.amplify.aws/react/connected-components/liveness

i have falow the instructions but i am with some problems...

like this for exemple:

Uncaught (in promise) Error: Objects are not valid as a React child (found: object with keys {__v_isVNode, __v_skip, type, props, key, ref, scopeId, slotScopeIds, children, component, suspense, ssContent, ssFallback, dirs, transition, el, anchor, target, targetAnchor, staticCount, shapeFlag, patchFlag, dynamicProps, dynamicChildren, appContext, ctx}). If you meant to render a collection of children, use an array instead.

devilwjp commented 11 months ago

@FreeLancerPT Your error may be that your react jsx is compiled into VNode. You should check your configuration or provide me with an actual code example. I can help you solve the problem in more detail.

moshuying commented 11 months ago

looks like ts project, mybe u need this https://github.com/devilwjp/veaury/issues/94