Closed
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clear
oryarn 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
.
Maybe a side effect of #11010 ?
Reproducible demo
https://github.com/facebook/docusaurus/
Steps to reproduce
yarn build:website:en && yarn serve:website
- Open http://localhost:3000/docs/playground
Expected behavior
No error.
Actual behavior
Cannot read properties of undefined (reading 'width')
Your environment
- Public source code: https://github.com/facebook/docusaurus/
- Public site URL: https://deploy-preview-11017--docusaurus-2.netlify.app/docs/playground (noticed on my PR, but the problem is not related to my changes).
- Docusaurus version used:
main
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome 134
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 11
Self-service
- I'd be willing to fix this bug myself.