nuxt-community / svg-module

Super simple svg loading module for Nuxt.js
MIT License
340 stars 35 forks source link

Does not appear to modify webpack config #30

Closed silverbackdan closed 4 years ago

silverbackdan commented 4 years ago

When loading svgs in as the Readme describes, I just see the SVG filename instead of the 'raw' SVG.

It's a bit weird because I copied the module file into my own local directory and included that module which worked. But then when I pushed it to production servers the local version came up with an error 'MODULE_NOT_FOUND'. So I've tried to revert to using this module as described.

I'm wondering if there are other requirements or things that are known to interfere with this module working?

Sorry for not giving a reproduction or much info - I thought it'd be easiest to perhaps ask this question first as it may be a common issue that I've overlooked.

silverbackdan commented 4 years ago

Absolutely no idea what happened but it started working after a computer reboot. Strange issue with loading the svg into the src attribute of an img tag but worked around it. Thanks for the plugin!!