Unable to import SVG generated by Lucidchart failing with "SyntaxError: unknown file: Namespace tags are not supported by default" #10636
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
status: needs triage
This issue has not been triaged by maintainers
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
The text was updated successfully, but these errors were encountered: