最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

typescript - Failing to render page on Google Search console only - Stack Overflow

programmeradmin2浏览0评论

I'm working on a website, it's up and running and everything seems fine except...

The pages aren't indexing, in Google Search Console, it show a 'Soft 404' and when I do a Live URL inspection it shows an error page, a white page with text :

"Application error: a client-side exception has occurred (see the browser console for more information).".

I also see a bunch of error messages from the Javascript console :

Uncaught (in promise) TypeError: Invalid schema configuration: Z is not a valid type at path createdAt.

I looked everywhere for typing errors, tried to refactor the code in dozens of ways, I can't figure out why this is happening...

The website is developped with Next.js and typescript, styling with tailwind and some CSS, the database is mongoDB, media storage in amazon AWS and it's deployed through Vercel.

If you have deployed a Next.js app using SSR with functional indexing before, it should be a piece of cake for you and I would love some insight.

I can't really post code right here as it's kind of a complex page with components and all but here is the Github repo The problematic page as the route 'example/post/[postId]

Image of the page rendered by Google Search console's live URL test

Image of the Javascript console error

Have a good day !

发布评论

评论列表(0)

  1. 暂无评论