Vite (Tanstack Router) + Next monorepo #6741
              
                Unanswered
              
          
                  
                    
                      EliasGit117
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 1 reply
-
| 
         you find a better solution ?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| 
         @alessiotortora no, it’s looks like there is no better workaround  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    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.
-
Hi, I'm trying to configure properly monorepo with Vite app along side with NextJS, and I have met some challenges on my path.
I get error

I fixed it by adding paths to tsconfig and tsconfig.app for Vite app
And added to vite.config this
But now I get this error

I've managed to fix it by changing import to
And it all works, BUT, the question, am I doing things right? Or my solution is terrible?
Beta Was this translation helpful? Give feedback.
All reactions