Я работал с возвышенным текстом 3 и выполнял свой код с системой сборки узлов. Когда я обновил nodeJS до v10, начались проблемы.
Система сборки узлов:
{
"cmd": ["C:/Program Files/nodejs/node.exe","$file"],
"selector": "source.js"
}
Консоль показывает эту ошибку:
console.log(window);
^
ReferenceError: window is not defined
at Object.<anonymous> (C:\Users\mhsn67\Documents\Front End NanoDegree\Example\Background-generator\app.js:3:13)
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
[Finished in 0.2s]