Skip to content
New issue

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

Text is not allowed in the R3F tree! This could be stray whitespace or characters. #105

Open
tutecode opened this issue Sep 2, 2023 · 6 comments

Comments

@tutecode
Copy link

tutecode commented Sep 2, 2023

I'm having this error and I don´t know what could be.

Text is not allowed in the R3F tree! This could be stray whitespace or characters.

image

@sojalmehra
Copy link

i am also facing the same issue ..

@I3lackMarius
Copy link

remove the fallback={} from <Suspense fallback={}> . Found the solution here: https://stackoverflow.com/questions/75655381/the-react-three-fiber-mesh-tag-is-unrecognized-in-this-browse

@jaismeenMehra
Copy link

I'm having this error and I don´t know what could be.

Text is not allowed in the R3F tree! This could be stray whitespace or characters.

image

if tou have any text statement inside return statement of component then remove it.

@tom-twinlabs
Copy link

I was able to resolve this by going through my components and removing whitespace. Maybe give that a try?

@tarunbisht-24
Copy link

For all the users still getting this warning, just simply remove the comments and whitespace from all the Models files like Sky.jsx, Island.jsx, Bird.jsx, Plane.jsx and Fox.jsx

This will help in removing any kind of warning that is being generated due to whitespace or comments as the R3F tree mostly comes from our Models file

@enya1407
Copy link

you need to carefully check for extra characters inside the tag. I had such an error. It turned out that inside there was an extra character ">"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants