webcontainer-core icon indicating copy to clipboard operation
webcontainer-core copied to clipboard

NextJS Image component does not work in Stackblitz

Open basarat opened this issue 10 months ago • 1 comments

Describe the bug

Example: https://stackblitz.com/github/basarat/course-nextjs/tree/main/lessons/image_static?file=src%2Fapp%2Fbasic%2Fpage.tsx

  • The image is not displayed in the browser
  • The developer terminal (next dev) shows an error Image

The same example works locally

Link to the blitz that caused the error

https://stackblitz.com/github/basarat/course-nextjs/tree/main/lessons/image_static?file=src%2Fapp%2Fpriority%2Fpage.tsx

Steps to reproduce

  1. Open the example basic
  2. View the error as shown

Expected behavior

The image should be displayed as it does locally:

Image

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 133.0.0.0
Major version = 133
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 149688097,
  "usedJSHeapSize": 104439773,
  "jsHeapSizeLimit": 4294705152
}
Hash = 7f809d15

Additional context

No response

basarat avatar Feb 21 '25 07:02 basarat

For SEO, the error is "TypeError: Unknown encoding: base64url"

basarat avatar Feb 21 '25 08:02 basarat