In Nuxt2 I imported them as components but when I tried that now it gives weird hydration bugs.
<template>
<my-icon />
</template>
<script setup>
import myIcon from 'assets/icons/my-icon.svg?inline'
Also, some of the errors I get:
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core
Unhandled Promise Rejection: InvalidCharacterError: The string contains invalid characters. (I checked the svg and it appears to be syntactically correct though)
Hydration node mismatch:
- Client vnode: – "/_nuxt/assets/icons/icon-doc.svg?inline" (69)
"
- Server rendered DOM:"
<!---->
""
"
"