0

I have added jsconfig.json for path alias

 "baseUrl": ".",
 "paths": {
      "@/*": [ "src/*" ]
  }

Work fine with editor but npm run gives error Failed to resolve import "@/router"

Relative path also works fine.

module-alias plugin does not work either.

mjmicro
  • 73
  • 9
  • 2
    you might want to search around here on S.O., there are questions about the same topic. E.g. [this](https://stackoverflow.com/questions/73495629/how-to-use-intellisense-with-at-symbol-in-vite) or [this](https://stackoverflow.com/a/64511851/540776) look relevant. In case, you might also want to close this question. HTH – superjos Mar 06 '23 at 17:10

0 Answers0