Open mallikcheripally opened 3 years ago
Sorry for the delay, I have not been having enough time to look at this repo. I'll look into your issue and see if I can help somehow (if it still matters for you).
That would be great if you could help me with this one!
I created a new project using Create React App v4.0.3, React v17.0.2, React Router DOM v5.2.0. Added the configuration needed to run
react-snap
post-build and followed the other instructions mentioned at NPM package documentation.The app works as expected when the main route
/
is hit and the source code is generated as per expectation. But when a different route like maybe/route1
or/route2
is hit, styling gets broken and the source code shows for the main route instead of forroute1.html
Post-build the behavior is a bit unexpected when hitting "/route1" because, under Developer Tools > Element panel, the HTML structure is as follows:
When looking at the source code directly in the
route.html
file, it's as expected. However when hitView Source Code
from the/route1
, it shows theHome Page
source code.I've tried playing around with the configuration but doesn't seem to help. @philipeatela How to solve this issue?