Search code examples
intellij-ideakotlinjetbrains-ideintellij-plugin

How to add com.intellij.javascript.nodejs for create idea plugin?


Code include

import com.intellij.javascript.nodejs.interpreter.NodeJsInterpreterRef

When I'm trying to build it shows me this error message:

Error:(4, 32) Kotlin: Unresolved reference: nodejs


Solution

  • Please follow the instructions for setting up a development environment.

    NodeJsInterpreterRef is provided by "JavaScript Support" plugin. You'll need to add the JavaScriptLanguage.jar to the classpath of your IDEA SDK. You should be able to find it in plugins/JavaScriptLanguage/lib inside your IntelliJ install directory.