[solved] Can't use `@solidjs/router` in external package for SolidStart
I'm trying to write a library for my SolidStart project & need to use the
If I copy paste the library code into the SolidStart project it suddenly works flawlessly. Does anyone know what's going on?
For context, I'm trying to create a builder function that returns a wrapped
Edit: Some additional context
-
A component exported from @solidjs/router in the library. However, when I use the library in the app it breaks & complains that it needs to be wrapped in <Router>. If I copy paste the library code into the SolidStart project it suddenly works flawlessly. Does anyone know what's going on?
For context, I'm trying to create a builder function that returns a wrapped
A component, like so:Edit: Some additional context
-
@solidjs/router is a peerDependency in the library, so it should be using the same version