Closed Phil-Barber closed 2 years ago
@Phil-Barber try to use https://github.com/doczjs/docz/issues/1184#issuecomment-543737651, helps for me
I no longer work on this repo so will be unable to confirm if that fixes things. I think we can close this since it's likely stale anyway
Description Since we started to use @svgr/webpack to load .svg files and import them in our components which are then imported in the component library we've been having the following issue on build:
Adding
'gatsby-plugin-svgr
to our gatsby-config plugins means the build runs successfully but the build is not correct. None of the navigation buttons in the left sidebar are clickable, and if I navigate directly to a URL, the components are not rendering correctly.I've tried adding the following to my gatsby-node:
but still no joy.
Additional context
This is taking place inside the main repo with code in src and a root webpack.config.js and babelrc, the docz files build into ./docs. I've seen that can cause problems in other areas.
An example svg being loaded in a component in our ./src. react-assets is being aliased as you can see above:
Any help much appreciated