Skip to content

Vite.js + Eslint unable to resolve path alias #14667

Discussion options

You must be logged in to vote

this is related to the eslint-plugin-import, which is not maintained by the eslint team. you can file the issue in that repo.

maybe you can try this:

settings: {
    'import/resolver': {
      alias: {
        map: [
          ['@', './src'],
        ],
      },
    },
  },

Replies: 1 comment 26 replies

Comment options

You must be logged in to vote
26 replies
@ianpaschal
Comment options

@Prakhargarg-2010196
Comment options

@wmonecke
Comment options

@wmonecke
Comment options

@shennan
Comment options

Answer selected by Delicious-Bacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet