Vite library exclude vue-router #1704
              
                Unanswered
              
          
                  
                    
                      andredewaard
                    
                  
                
                  asked this question in
                Help and Questions
              
            Replies: 0 comments
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
When creating a Vite library with Vue and Vue-router i have some views that include vue-router as:
inside the library this works fine, Whenever i build this library and import it into a project the router instance is undefined.
I did add vue-router to vite.config.ts as external package like so
Beta Was this translation helpful? Give feedback.
All reactions