SorikairoS
Denoβ€’3y agoβ€’
1 reply
Sorikairo

PhpStorm not resolving local import with import_map.json

Deno Version :
deno 1.33.0 (release, aarch64-apple-darwin)
v8 11.4.183.1
typescript 5.0.3

PhpStorm version: PhpStorm 2023.1.1 Preview

Deno Plugin version: 231.8109.91

OS: Ventura 13.2 Apple M2 Pro

I basically cloned the SAASKit. PHPStorm settings looks fine (cf screenshot) because it can cache dependencies on its own, and resolve them.

However ! Local import (cf screenshot) such as import Logo from "@/components/Logo.tsx"; are not resolved by Phpstorm. I get no autocompletion, and I cannot cmd+click (or ctrl+click for windows guys) on the import to go to the file (cf 3rd screenshot).
Screenshot_2023-04-28_at_23.46.54.png
Screenshot_2023-04-28_at_23.48.05.png
Was this page helpful?