I keep getting this error with my image assets when I use this module with nuxt
Loading...
ERROR in ./src/assets/img/loading.gif
Module build failed (from ./node_modules/svg-to-vue-component/loader.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag.
Line: 0
Column: 1
Char: G
at runLoaders (D:\Projects\elk\theme\node_modules\webpack\lib\NormalModule.js:298:13)
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.module.exports (D:\Projects\elk\theme\node_modules\svg-to-vue-component\loader.js:38:5)
ERROR in ./src/assets/img/bricks_bg.png
Module build failed (from ./node_modules/svg-to-vue-component/loader.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag.
Line: 0
Column: 1
Char: �
at runLoaders (D:\Projects\elk\theme\node_modules\webpack\lib\NormalModule.js:298:13)
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.module.exports (D:\Projects\elk\theme\node_modules\svg-to-vue-component\loader.js:38:5)
ERROR in ./src/assets/img/photo.jpg
Module build failed (from ./node_modules/svg-to-vue-component/loader.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag.
Line: 0
Column: 1
Char: �
at runLoaders (D:\Projects\elk\theme\node_modules\webpack\lib\NormalModule.js:298:13)
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.module.exports (D:\Projects\elk\theme\node_modules\svg-to-vue-component\loader.js:38:5)
ERROR in ./src/assets/img/photo2.jpg
Module build failed (from ./node_modules/svg-to-vue-component/loader.js):
NonErrorEmittedError: (Emitted value instead of an instance of Error) Error in parsing SVG: Non-whitespace before first tag.
Line: 0
Column: 1
Char: �
at runLoaders (D:\Projects\elk\theme\node_modules\webpack\lib\NormalModule.js:298:13)
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (D:\Projects\elk\theme\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.module.exports (D:\Projects\elk\theme\node_modules\svg-to-vue-component\loader.js:38:5)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too