React SVGR in t3 app?
Does someone know why I can't setup https://react-svgr.com/docs/next/ in my t3 app?
This is my config file:
But if I try to run
pnpm run dev
I get this:
`Next.js - SVGR
Transforms SVG into React Components.
6 Replies
this is what you need
in ct3a, the next config file is
.mjs
file
its a es module
you can't module.exports in a module, the syntax is export default
just put whatever configurations you need in the config object
you won't even need to go outside of that config objectThanks
@nexxel but it still does not find the svg file in my component? It says that the src properly is empty:
Any idea regarding that?
The image exists inside my public directory
idk about that never used this library sorry
ok 🙂
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
True, yes I misunderstood it right now using the svg directly as a component, thanks for the clarification