Open sgerace opened 3 weeks ago
FYI Docusaurus v3.7 will have an SVGR plugin to let you fix SVGR/SVGO-related config issues on your own: https://github.com/facebook/docusaurus/pull/10677
I'll consider this issue fixed because technically you'll now have the escape hatches to adjust SVGR/SVGO to your own needs, or plainly disable it.
In Docusaurus v4 will likely refactor those configs to better defaults. Please help us doing so here if you have an opinion (https://github.com/facebook/docusaurus/issues/10679)
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
Using an SVG exported from Lucidchart, if I try to import the image using the CommonJS syntax or Import statement, I receive the error: "SyntaxError: unknown file: Namespace tags are not supported by default"
This appears to be an identical issue as #3689, which was resolved by #3691.
Here is the test image I have been using:
Reproducible demo
https://stackblitz.com/edit/github-rjekmw?file=docs%2Ftutorial-basics%2Ftest.svg,docs%2Fintro.md
Steps to reproduce
test.svg
) in thedocs
folder and copy the following SVG contents into the file:Expected behavior
SVG is loaded and displayed correctly.
Actual behavior
I receive the following error:
Your environment
Self-service