-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
An unexpected error has occurred. Invariant Violation: You should not use <Link> outside a <Router> #9438
Comments
Also affects Looks like it's remix-run/react-router#6630 |
I ran in to the same problem and is working properly using yarn instead of npm |
@ruddell any ETA to release a new version with this fix?! Thanks! |
It shouldn't be needed because react-router fixed the issue. I just tested a React app with v5.8.2 and could access the frontend. If you still run into it, you can add |
I just created an app with react, but I couldn't access with this error (with v5.8.2). Maybe something is wrong in my environment? Anyway, adding the |
Overview of the issue
After generating a monolith with React frontend the frontend does not work!
Details
Invariant Violation: You should not use outside a
Reproduce the error
Generate a React monolith!
JHipster Version(s)
5.8.1
JHipster configuration
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
git version 2.17.1
node: v10.15.0
npm: 6.7.0
yeoman: 2.0.5
yarn: 1.13.0
INFO! Congratulations, JHipster execution is complete!
Browsers and Operating System
Windows, Linux
The text was updated successfully, but these errors were encountered: