Skip to content

Cannot read properties of undefined (reading 'width') on main #11018

Closed
@Danielku15

Description

@Danielku15

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io.
  • I have read the console error message carefully (if applicable).

Description

Seems #11010 broke something unexpectedly? If I build the website on the current main state I get a:

Cannot read properties of undefined (reading 'width')

Building the website with --no-minify I can see its somewhere in the ideal-image-plugin
Image.

Maybe a side effect of #11010 ?

Reproducible demo

https://github.com/facebook/docusaurus/

Steps to reproduce

  1. yarn build:website:en && yarn serve:website
  2. Open http://localhost:3000/docs/playground

Expected behavior

No error.

Actual behavior

Cannot read properties of undefined (reading 'width')

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions