Minified React error

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)

Social sharing cards, og:title, etc, are not working, I think because of minified react error as I’ve been able to get the og:title, og:image, etc to work on all other projects.




What are the reproduction steps?

Loading any page of the site/application creates a minified react error.

Relevant links:

Hi @ali_mahvan,

Try checking if the SEO tags are in the rendered HTML without JavaScript running. You can do this by turning off JavaScript in devtools or use curl.

As for the minified error, it’s likely something to do with your server code. You can see the error code was 419: Minified React error #419 – React

Hey Jason, when I disable JavaScript in my browser the /head tags still appear, but the crawlers are all failing to retrieve them.

I understand the issue is in the server code, which is why I’m posting here. The site is hosted with Plasmic through Plasmic Studio, so I have no access to the server code.

When I attempt to deploy with Google Cloud Run from my github repo the problem is resolved, but I was unable to resolve the conflicts caused by the [[catchall]].tsx and the pages directory.

The result is, I’ve opted to stick with Plasmic for easy deployment, but need help from the Plasmic team to solve the server side issues.

I’m actually not seeing the SEO tags in the on initial load. We’ll be investigating.

Hey @ali_mahvan

The issue stems from the usage of sessionStorage in your application which is undefined on server side and throws error sessionStorage is not defined.

You would need to add a check such as typeof window !== 'undefined' to make sure it only runs on the client side.