T
TanStack2y ago
eastern-cyan

parent is undefined

Hi there, I am new to TanStack Router, I am using this for MircroFE, i have set a base path for on createRouter I can able to load the page if i enter the right url but when i use link from nav i am getting parent is undefined Can anyone help me
No description
No description
10 Replies
eastern-cyan
eastern-cyanOP2y ago
No description
eastern-cyan
eastern-cyanOP2y ago
No description
eastern-cyan
eastern-cyanOP2y ago
@Sean Cassiere
correct-apricot
correct-apricot2y ago
please provide a minimal complete example
eastern-cyan
eastern-cyanOP2y ago
No description
No description
No description
No description
eastern-cyan
eastern-cyanOP2y ago
Here i have attach minimal complete example, which contain root file, navigation (contain the link) and two other sub components
eastern-cyan
eastern-cyanOP2y ago
eastern-cyan
eastern-cyanOP2y ago
@Manuel Schiller @Sean Cassiere
correct-apricot
correct-apricot2y ago
By a minimal complete example, we mean a Stackblitz working example which we can use to debug the problem. You can create a minimal example using the file-based stackblitz starter or the code-based stackblitz starter
StackBlitz
Router Quickstart File Based Example - StackBlitz
Run official live example code for Router Quickstart File Based, created by Tanstack on StackBlitz
StackBlitz
Router Quickstart Example - StackBlitz
Run official live example code for Router Quickstart, created by Tanstack on StackBlitz
correct-apricot
correct-apricot2y ago
Without a reproduction, we can't actually diagnose and try to find the root cause of whats going on. Especially with a code-based approach since that's where a majority of people mess up the configuration. So basically take out the unneccesary parts like the actual content on the page, components, and just leave in the bare minimum for us to be able to experience the problem.

Did you find this page helpful?