Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Intellij IDEA shows require undefined with nodejs?

Does anyone know why intellij IDEA underlines require? How can I fix this?

enter image description hereenter image description here

like image 304
Stepan Yakovenko Avatar asked Dec 25 '14 15:12

Stepan Yakovenko


People also ask

Does IntelliJ come with node js?

js Remote Interpreter plugin is installed and enabled. The Node. js Remote Interpreter plugin is not bundled with IntelliJ IDEA, but it can be installed on the Settings/Preferences | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository.


1 Answers

I had the same problem on windows, with IntelliJ IDEA 15.0.3. The solution was:

File -> Settings -> Languages & Frameworks -> Nodejs and NPM: Click "Enable" button next to Node.js Core library, accept defaults.

like image 144
Atilio Jobson Avatar answered Nov 12 '22 18:11

Atilio Jobson