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
using nsc Example1.ns -o a.js, when I run a.js I get:
root@9e1af5a6a5d9:~/Project1# node a.js
/root/Project1/a.js:1
N$$_._registerClass("N$_c_TheClass",null,function(N$_s, N$_m) { function N$_c_TheClass() { this.constructor = N$_c_TheClass;this.N$_id = ++N$$_._id;}
^
ReferenceError: N$$_ is not defined
at Object.<anonymous> (/root/Project1/a.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11
root@9e1af5a6a5d9:~/Project1#
How can I run a.js? Do I need to import something?
The README in the 3.0 branch specifies how to compile code, but not how to run the result.
Given a file called Example1.ns:
using
nsc Example1.ns -o a.js, when I run a.js I get:How can I run a.js? Do I need to import something?