Issue with alias resolver
See original GitHub issueI am trying to use aliases, usually it works with the https://www.npmjs.com/package/eslint-import-resolver-alias
But when I run the app, the plugin is trowing all the time:
Unable to resolve path to module '@/components/....'
It seems that adding
"settings": {
"import/resolver": {
"alias": {
"map": [
["@", "./src"]
]
}
}
},
Is not detected by the vite plugin
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Support eslint-import-resolver-alias Config · Issue #249
Request to support module aliases as provided by the config in eslint-import-resolver-alias. It seems like the rule node/no-missing-import is not aware of ...
Read more >How to fix "resolve.alias" problem in Vite.js - Raul Melo
How to fix "resolve.alias" problem in Vite.js. This article was published on Jul 15, 2022, and takes approximately 2 minutes to read.
Read more >How to resolve a path alias in Storybook - +return
To solve this issue, we will need to configure Storybook's webpack to resolve the path alias. the concept is really similar to how...
Read more >Invalid webpack resolve alias
When overriding config.resolve.alias incorrectly in next.config.js webpack will throw an error because private-next-pages is not defined.
Read more >How to Create a Path Alias in Webpack
Establish the Module Aliases · Open your Webpack.config.js file. · If it's not already there, add a resolve property to the configuration object...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You are a legend! Your eslint config pointed me in the right direction and now my vue project works with airbnb config. Thank you very much for your help.
Here is my eslint:
https://github.com/a-tonchev/react-boilerplate/blob/master/.eslintrc.json
You can check also my package.json for the plugins I am using:
https://github.com/a-tonchev/react-boilerplate/blob/master/package.json
I hope that will help you