[plugin-ideal-image] The plugin causes the image in background-image to not load correctly. #10862
Open
5 of 7 tasks
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
It seems that the plugin-ideal-image plugin is intercepting the
background-image: url('xxx')
property set in the CSS, causing the image to not load correctly on the rendered page. When inspecting the element, you can see that the background-image in the styles is shown asbackground-image: url([object Object]);
instead of the actual image URL:My css code is:
I'm using docusaurus v3.7.0:
My docusaurus config is :
The render result is:
Reproducible demo
No response
Steps to reproduce
Install and configurate the plugin-ideal-image plugin. Add a background-image in css to a div element.
Expected behavior
The background-image can render correctly, or the plugin-ideal-image plugin can be configured to exclude background images.
Actual behavior
The path string of the image is converted to an object:
Your environment
Self-service
The text was updated successfully, but these errors were encountered: