-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Describe the bug
I am using a monorepo and have a problem importing components into my application. Up until solid-js v1.9.5
everything worked fine in my repository. But whenever I upgrade to a newer version I get the following error:
index.jsx:17 Error: <A> and 'use' router primitives can be only used inside a Route.
However when I created a minimal reproduction of the error, all of a sudden it started to work with solid-js v1.9.9
and the error shows when I use solid-js v1.9.5
and use pnpm page-direct-import dev
.
But in my monorepo the direct import and exports import both work fine with v1.9.5
and both break with v1.9.9
.
Your Example Website or App
https://github.com/floratmin/solid-monorepo-route-breaks
Steps to Reproduce the Bug or Issue
Minimal reproduction
- pnpm i
- pnpm page-direct-import dev
- Open page and click on about link
- The error gets displayed
- Change solid-js version to v1.9.9 in all package.json of apps packages
- pnpm i
- pnpm page-direct-import dev / pnpm page-exports-import dev / pnpm page
- Open page and click on about link
- Everything works
My monorepo (both direct import and exports import)
- Solid-js version is v1.9.5
- pnpm page dev
- everything works
- Change solid-js version to v1.9.9 in all package.json of apps packages
- pnpm i
- pnpm page dev
- Open page and click on about link
- The error gets displayed
Expected behavior
Routing should not loose context
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux] Ubuntu
- Browser: [e.g. Chrome, Safari, Firefox] Chrome
- Version: [e.g. 91.1]
Additional context
Metadata
Metadata
Assignees
Labels
No labels