Closed laSinteZ closed 4 years ago
(for all seeking for a temporary "fix") I temporarily disabled this rule for SVGs with
rules: {
'import/no-unresolved': [
'error',
{
'ignore': [ '\.svg' ]
}
]
}
in .eslintrc.js
@laSinteZ Thank you for this and for providing both a reproduction link and a temporary fix! I'm afraid I won't be able to get round to implementing a fix for this within the module for a little while.
Description
For some reason,
eslint-plugin-import
triggers with10:18 error Unable to resolve path to module '~/assets/example.svg?inline' import/no-unresolved
but OK with
<img src="~/assets/example.svg?data">
I understand that problem most probably is in theeslint-plugin-import
but maybe we can solve it here :)How to repeat
https://github.com/laSinteZ/nuxt-svg-bug/tree/bug/eslint-plugin-import