Skip to content

NextJS Image component does not work in Stackblitz #1742

@basarat

Description

@basarat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions