nuxt-community / svg-module

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

initialy loads urls as [object Module] #3

Closed laSinteZ closed 5 years ago

laSinteZ commented 5 years ago

Description

At the initial screen render, img's src are loaded as "[object Module]" screen shot 2019-01-16 at 13 05 20

Problem disappears if you try to edit a file and save it, so page hot-reloads and reappears after usual page reload.

How to repeat

https://github.com/laSinteZ/nuxt-svg-bug

yarn
yarn dev

Look at the broken link, try editing nuxt page, try reloading page.

laSinteZ commented 5 years ago

Same happens with <img src="~/assets/example.svg?data">

laSinteZ commented 5 years ago

I've checked previous version, 0.1.4, and it worked perfectly there. Downgraded for now.

sam3d commented 5 years ago

Thank you for such a comprehensive bug report! I'm sorry this has happened, I'll unpublish 0.2.0 to bring it back to the latest version and then work out the bugs and redeploy it.

sam3d commented 5 years ago

I'm sorry for the delay on solving this, I'll be able to get to this later this week.