Skip to content

TypeError: Cannot read properties of null (reading 'tagName') #30604

@meesrutten

Description

@meesrutten

What version of Next.js are you using?

12.0.1

What version of Node.js are you using?

14.15.3

What browser are you using?

Chrome

What operating system are you using?

macOS Big Sur

How are you deploying your application?

Vercel

Describe the Bug

During development, each refresh I get this error:
TypeError: Cannot read properties of null (reading 'tagName')

image

It comes from this component:
image
In this case <Picture /> is just a next/image, where the first image is loaded eagerly with priority

Full error stack:
image

Expected Behavior

Doesn't show the error

To Reproduce

Run component

Metadata

Metadata

Assignees

No one assigned

    Labels

    Image (next/image)Related to Next.js Image Optimization.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions