Code Assist missing for node_packages

Having created an empty project, ran npm install, added a dependency on d3 and then tried using it in a js file, I do not get code assist. Even worse, webstorm tells me, that d3.json is unresolved.

Am I missing some additional configuration needed?



1 comment
Comment actions Permalink

d3 package re-exports modules from dozens of d3-* packages that are not listed as direct dependences in your package.json and thus are not included in the IDE index. In particular, json() function is declared in d3-fetch module. You can un-exclude all these packages manually by right-clicking them in Package explorer and choosing Mark directory as/Not excluded. But I'd strongly recommend installing the TypeScript library stubs instead (see



Completion/resolving works fine for me when stubs are installed:


Please sign in to leave a comment.