You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Yeah the linked issue was double package as well. These setups can be tricky but there is nothing really on the Solid side to fix since this is clearly package resolution concern. @floratmin sorry for not getting to this earlier. Thank you @brenelz for taking the time to download and look at the project.
Activity
brenelz commentedon Apr 30, 2026
Upon looking at this I believe this is a duplicate-solid-js resolution problem in the monorepo.
Two distinct solid-js instances are present in node_modules:
ryansolid commentedon Apr 30, 2026
Yeah the linked issue was double package as well. These setups can be tricky but there is nothing really on the Solid side to fix since this is clearly package resolution concern. @floratmin sorry for not getting to this earlier. Thank you @brenelz for taking the time to download and look at the project.