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.
Please sign in to leave a comment.
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)