You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There may be some stuff possible, but really it needs some infrastructure on the NetBeans side to make that work. Basically, Node, under the hood, generates a function (require, module, exports, ...)
and wraps that around each Node module when it loads them.
There needs to be a way to tell NetBeans that (and faking out the InputStream from the file will screw up everything that needs file offsets - the Javascript parser needs to be told to do that).
I'll get in touch with the guy doing Javascript support for NetBeans and see if he has any suggestions - but what I'm saying is, I'm not sure there is much that a plugin can do without very specific support from the Javascript parser in the IDE.
Also What I noticed is if all statements involved require('...') is on the right hand of an assignment (instead simply require('something').doSomething()), it does not show warning.
var http = require('http');
The IDE (netbeans 8.0 beta) will show a warning that "The global variable 'require' is not declared". Any solutions? Thank you!
The text was updated successfully, but these errors were encountered: