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.

0

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)

0

请先登录再写评论。