You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On production, the URL is populated correctly: <meta property="og:image" content="https://www.mydomain.com/sharepage/__og_image__/og.png">
but if I go to that URL directly, I get a 500 error:
[nuxt] error caught during app initialization Error: Page not found: /sharepage/__og_image__/og.png
at Gi (entry.acb9a3ca.js:1:119961)
at entry.acb9a3ca.js:13:9639
at r (entry.acb9a3ca.js:1:95258)
at Object.runWithContext (entry.acb9a3ca.js:1:39867)
at by (entry.acb9a3ca.js:1:95288)
at entry.acb9a3ca.js:1:93934
at Cu.run (entry.acb9a3ca.js:1:3586)
at Object.runWithContext (entry.acb9a3ca.js:1:93926)
at entry.acb9a3ca.js:13:9617
at entry.acb9a3ca.js:5:20672
entry.acb9a3ca.js:14 Failed to create og image: undefined is not an object (evaluating 't.type')
Found the culprit - it seems like nuxt-og-image (and Santori, at least) is not currently compatible with Bun. As soon as I switched to just regular Node 20, it works. Feel free to close this if you like, but know that Bun compatibility is the bigger issue.
harlan-zw
changed the title
Failed to create og image: undefined is not an object (evaluating 't.type')
Bun incompatibility
Nov 25, 2023
Describe the bug
Works great running
nuxi dev
locally.On production, the URL is populated correctly:
<meta property="og:image" content="https://www.mydomain.com/sharepage/__og_image__/og.png">
but if I go to that URL directly, I get a 500 error:
My nuxt.config:
Reproduction
https://stackblitz.com/edit/github-r8fu9x?file=components%2FOgImage.vue
System / Nuxt Info
The text was updated successfully, but these errors were encountered: