"Cannot resolve file" but files exist in folder marked as resource root

The error is: `Cannot resolve file 'favicon.ico'`

The file is located in the public directory which is marked as a resource root.



Similar questions:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206368229-Cannot-resolve-file-warning?input_string=Cannot%20resolve%20file - I've marked the directory as a resource root and it's still not working.


https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000006044-How-to-set-html-root-directory - The author mentioned that having the resource root in .gitignore caused the "cannot resolve file" error. I tried removing `/dist/` from .gitignore with no change.

1 comment
Comment actions Permalink

It doesn't work with IDEA resource roots, please follow https://youtrack.jetbrains.com/issue/WEB-25642 for updates


Please sign in to leave a comment.