react-router-dom - Canvas won't render within Route #1638
Unanswered
josh-willy91
asked this question in
Q&A
Replies: 2 comments 3 replies
-
there's nothing that wouldn't be compatible, it's just a regular dom component. type invalid could mean a typo, when you import something that doesn't exist. do you have a quick sandbox? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Can you provide a sandbox demonstrating the issue? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app with multiple pages. I have a nav bar component then use a Switch and Route to list my other pages on my nav bar. The issue I'm having is when I try to create a page where I use react-three-fiber I get an 'Error type is invalid' error. The error only occurs once I place the Canvas tag inside my Route. I'm I using three-fiber wrong or is it not compatible with react-router-dom?
This is my first time using three-fiber so any help is greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions