d3 Libray v6.1.1 - d3 functions not recognized

I have a reference to the d3 library in my index.html file.  I have downloaded a local copy and added it as a library in the Settings | Languages & Frameworks | JavaScript | Libraries Interface

I have a linked script.js which I am developing in.

My expectation is that the exported functions should auto-complete or at least be recognized as d3 functions.

The syntax highlighting is not showing these as recognized functions.



I've read this thread which seems to show what I was expecting, but I cannot reproduce it.
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000161404-trouble-with-d3-code-complete?input_string=d3%20Libray

This link:
https://youtrack.jetbrains.com/issue/WEB-7380

Shows the kind of auto-complete I would expect, but the use case there is using the `import` command, which I can't do in vanilla JS.

What am I missing?

1 comment
Comment actions Permalink

I'd suggest using TypeScript stubs for completion: Settings | Languages & Frameworks | JavaScript | Libraries, press Download, choose 'd3' from the list

 

1

Please sign in to leave a comment.