Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant failed: You should not use <Link> outside a <Router> #67

Open
Karnadeep opened this issue Sep 29, 2021 · 1 comment
Open

Invariant failed: You should not use <Link> outside a <Router> #67

Karnadeep opened this issue Sep 29, 2021 · 1 comment

Comments

@Karnadeep
Copy link

Karnadeep commented Sep 29, 2021

Error: Invariant failed: You should not use Link outside a Router
at invariant (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:13:11)
at Object.children (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/react-router-dom/modules/Link.js:89:11)
at ReactDOMServerRenderer.render (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/react-dom/cjs/react-dom-server.node.development.js:3635:55)
at ReactDOMServerRenderer.read (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/react-dom/cjs/react-dom-server.node.development.js:3373:29)
at renderToString (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/react-dom/cjs/react-dom-server.node.development.js:3988:27)
at /Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/server/index.jsx:88:29
at Generator.next ()
at onFulfilled (/Users/karnadeeprana/Documents/ReactWorkspace/isomorphic-react/node_modules/co/index.js:65:19)

@Karnadeep
Copy link
Author

Karnadeep commented Sep 29, 2021

Trying to fix above gives rise to the below issue
You should not use Route outside a Router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant