IDE cannot resolve directory on require.js external paths


in my require.config - part, i use external libraries to pull them in via require.js. But WebStorm is showing the external urls as an error. Has anyone an idea whythis happens or how to configure WebStorm to recognize these libs?

here is the code:

    baseUrl: "",
paths: {
        "knockout": "//",
: "//",
: "//",
: "//",
: "//",
: "scripts/lib/knockout-amd-helpers",
: "scripts/lib/text"

All links to the external ressources are marked as "cannot resolve directory...". I added a screenshot because this is somewhat hard to explain.

This is not an issue with my program, it all works fine. Just WebStorm is showing these as an error. Which it should'nt in my opinion (WebStorm 9.0.3).

Comment actions Permalink

URLs in require() are not currently supported. Please vote for
The only way to get rid of the error is suppressing error highlighting  for this file: click the Hector icon in the lower right corner and then  move the slider to change the Highlighting level to None. See 
Comment actions Permalink

Thanks for the answer, disabled error checking for that specific file.


Please sign in to leave a comment.