solid-router
solid-router copied to clipboard
SSR no matching exports
Describe the bug
I'm doing SSR with hono, I use both renderToStringAsync from solid-js/web and Router from @solidjs/router in the pages I want to render on the server. I get following errors:
error: No matching export in "node_modules/solid-js/web/dist/server.js" for import "memo"
at ./node_modules/@solidjs/router/dist/index.js:1:75,
error: No matching export in "node_modules/solid-js/web/dist/server.js" for import "template"
at ./node_modules/@solidjs/router/dist/index.js:1:133
The hack I use is to replace import { Router } from '@solid-js/router'
with import { Router } from './node_modules/@solidjs/router/dist/index.jsx'
And so for every imports from @solidjs/router or to create a file that imports everything from node_modules and re-exports it.
Your Example Website or App
^
Steps to Reproduce the Bug or Issue
^
Expected behavior
^
Screenshots or Videos
No response
Platform
- OS: macOS
- Browser: Edge
- Version: ^0.13.3
Additional context
No response