IDE showing path with preceding slash is wrong but it's not
How do I set it to use project root folder as the root for paths starting with a slash? I set content root in module settings but it doesn't seem to do that.


Code works correctly, only the IDE is having issues with paths.
请先登录再写评论。
You can mark the folders that are used as 'roots' (js, account) as Resource roots (Mark directory as/Resource root). see Configuring project structure | WebStorm Documentation (jetbrains.com)