Replies: 4 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
-
I initially attempted to configure |
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
Uh oh!
There was an error while loading. Please reload this page.
-
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