How do I use solid router in the solid playground?
I added solid router to the importmap, but whenever trying to import something it says “Cannot find module ‘@solidjs/router’ or it’s corresponding type declarations”
8 Replies
On Mobile rn and the share button doesn’t seem to work on mobile, but all I did was was:
1. Add “@solidjs/router”: “https://jspm.dev/@solidjs/router” to the import map
2. Trying to import anything from “@solidjs/router” in main.tsx
That will produce the error
GitHub
Testing with new Solid Router. · Issue #335 · solidjs/solid-router
Describe the bug There are 2 related questions regarding using Solid Router in test. With the old Solid Router, I can do something like this. <Router source={source}>...</Router> Where ...
This guy seems to have the same issue, although it’s something else they’re talking about in that discussion
It seems to work for me but it does take... a moment, to update.
A moment has been an hour and counting for me 🙂
No I cannot
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
the error appears, and the router isn't actually working, though there's no console error
Thanks!