T
TanStack2y ago
like-gold

How to solve lexical scope error?

I am using code-based routing I getting a lexical scope declaration error. How to solve the problem without changing the route at the one file.
3 Replies
conscious-sapphire
conscious-sapphire2y ago
Could you give us an example/reproduction and tell us exactly what you are trying to achieve?
like-gold
like-goldOP2y ago
It's my office project so I don't have permission to get the code.
conscious-sapphire
conscious-sapphire2y ago
The reproduction we need doesn't/shoudln't contain your entire codebase. Rather, it should only contain just enough to reproduce the error/issue you are facing. So can/are encouraged to strip out any confidential business logic (or anything of that nature) to whats only left is what is causing the error. You don't have to start from scratch, you can build a reproduction using one of our example projects and build it up to a point where your issue arises. Here's our Basic File Based example on Stackblitz: https://stackblitz.com/github/tanstack/router/tree/main/examples/react/basic-file-based Without a reproduction, no one here would be able to help you since we wouldn't understand exactly what is being done to produce the issue you are facing.

Did you find this page helpful?