[SOLVED] VS Code and TypeScript imports

Hi,
I have a problem with Visual Studio Code when I open .ts files that use imports from @vue-storefront.

It’s like VS Code doesn’t recognize @vue-storefront as the root folder, while in the tsconfig.json I have this configuration:

"paths": {
      "core/*": ["core/*"],
      "theme/*": ["src/themes/default/*"], //needs testing with non-default theme!
      "core/modules/*": ["./core/modules/*"],
      "@vue-storefront/*": ["./"]
    },

The strange thing is that on .js files, I don’t have this problem.

Does someone know how to solve it?

Solution ↓

Cool! Thanks for this PR

1 Like

I hope it will be merged @pkarw :slight_smile: