S
SolidJS10mo ago
anthy

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
anthy
anthyOP10mo ago
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
anthy
anthyOP10mo ago
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 ...
anthy
anthyOP10mo ago
This guy seems to have the same issue, although it’s something else they’re talking about in that discussion
<Alterion.Dev>
<Alterion.Dev>10mo ago
It seems to work for me but it does take... a moment, to update.
anthy
anthyOP10mo ago
A moment has been an hour and counting for me 🙂 No I cannot
<Alterion.Dev>
<Alterion.Dev>10mo ago
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
<Alterion.Dev>
<Alterion.Dev>10mo ago
the error appears, and the router isn't actually working, though there's no console error
anthy
anthyOP10mo ago
Thanks!
Want results from more Discord servers?
Add your server