-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG not correctly rendered after build #8850
Comments
What does "rendered correctly" means? Does it happen to all svgs or just one in particular. Does it happen in the prod build or in dev too. Show me a minimal repro where the code already has the SVG not rendering correctly. Your repro does not even contain the SVG you reference here.
https://stackblitz.com/~/github.com/devopsdao/dodao-docusaurus |
here is how it renders, see https://docs.dodao.dev
@slorber have pushed the version published on https://docs.dodao.dev to the github repository. |
Great, so what's the problem exactly? Isn't this rendering as it should? Show me your actual render vs expected render side by side and highlights the problem. |
I believe it's a duplicate of #8297. @makinghappen please try #8297 (comment) and we can re-open if it turns out it's not a duplicate. You may also want to embed the SVG using an |
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
SVG image included into main page featurelist not correctly rendered after build
const FeatureList = [ { title: 'We believe in «future of work»', Svg: require('@site/static/img/dodao/Ill-cat-future.svg').default, description: ( <> Our goal is to bring “real-world-business” to blockchain to reduce recruiting- and service fees and providing transparency, immutability, scalability and accessibility. </> ), url: '/docs/intro' }, ]
Reproducible demo
https://docs.dodao.dev
Steps to reproduce
Expected behavior
SVG must be rendered correctly
Actual behavior
probably because of the compression it is corrupted
Your environment
Self-service
The text was updated successfully, but these errors were encountered: