Jade/Pug 'watcher' problem? Unresolved function or method

I have an Angular project using Pug over my html. It was working well for a long time, it was compiling pug into html, and had 'links' into my .ts files by clicking both on html and pug on variables from component. But after some time & updating to latest WS version I am now always getting "Unresolved function or method" on each variable in pug files.

I am not sure, if that 'watcher' responsible for this linking, or for compiling only but It seems to be switched on.

Already tried Cleaning cache/Restart option.


Looks similar to https://youtrack.jetbrains.com/issue/WEB-35848, but it's fixed in 2018.3.1. What IDE version do you use?  How do you reference the template in your component file?


Same here. Because of that I downgraded to ver 2018.1.7 and it works fine. Today I installed newest ver 2018.3.3 and it does not work.

I reference template to component like this:

selector: 'app-root',
templateUrl: './app.component.html'

Try changing the reference to templateUrl: './app.component.pug'


It works. Thank You. But is it final solution? I mean I dont want to have reference to pug in component.


If this setup is common, we could probably add a special support for it. Please feel free to file a request for this feature to youtrack, https://youtrack.jetbrains.com/issues/WEB, to let other users vote for it


Please sign in to leave a comment.