Replies: 3 comments 2 replies
This comment was marked as spam.
This comment was marked as spam.
-
try this settings: {
'import/resolver': {
alias: {
map: [
['', './public'] // <-- this line
],
extensions: ['.js', '.jsx']
}
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
-
This worked for me for eslint, how to I tell VSCode to point to ./public as well? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the boilerplate code, there's this import:
import viteLogo from '/vite.svg';
I get this ESLint issue:
Unable to resolve path to module '/vite.svg'.eslint[import/no-unresolved](https://github.com/import-js/eslint-plugin-import/blob/v2.28.0/docs/rules/no-unresolved.md)
Any idea how to fix it?
My config:
Beta Was this translation helpful? Give feedback.
All reactions