False positive: `Make sure your app is wrapped in a <Router />` , @solidjs/router 0:7:0 - in npm lib
I have a npm component ( <O_Header) that assumes a router is wrapping it, ie, uses <A> tags
wrapping the app in a router:
usage in the problem project
utils.js?v=84c27385:28 Uncaught Error: Make sure your app is wrapped in a <Router />
at invariant (utils.js?v=84c27385:28:15)
at useRouter (routing.js?v=84c27385:9:32)
at useRoute (routing.js?v=84c27385:11:75)
at useResolvedPath (routing.js?v=84c27385:13:19)
at A (components.jsx:80:16)
at dev.js:524:12
at untrack (dev.js:427:12)
at Object.fn (dev.js:520:37)
5 Replies
the npm source:
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
its importing from an npm private repo
ie
import { O_Header } from 'web-commons';
ill see if same issue if i copy the file to the project instead
yup, the error goes away
its all exported from the npm repo like
I still get this from time to time