Peer dependencies conflict with main React for the latest version. This causes problems on Server Side Rendering with ExpressJS.
Workarounds such as installing them anyways with --legacy-peer-deps or including those peer dependencies on React's package.json separately as "peerDependencies": { "react": "16.4.2", "react-dom": "16.4.2" }, do not solve the conflict issues for SSR practices.
Notice the 3rd article on the console output. As all of the hooks on React work just fine, it seems to me that it's a version conflict issue.
Peer dependencies conflict with main React for the latest version. This causes problems on Server Side Rendering with ExpressJS.
Workarounds such as installing them anyways with
--legacy-peer-deps
or including those peer dependencies on React'spackage.json
separately as"peerDependencies": { "react": "16.4.2", "react-dom": "16.4.2" },
do not solve the conflict issues for SSR practices.Notice the 3rd article on the console output. As all of the hooks on React work just fine, it seems to me that it's a version conflict issue.![Screenshot from 2021-07-20 08-38-12](https://user-images.githubusercontent.com/5711717/126267507-4224ea44-a62a-46f0-bb8f-3cdcc3784514.png)