(1) Pitanja i odgovori  

  • Igor

    Kada uradim vezbu sa komandom import, dobijam ovakav odgovor od Terminala. Sta nije u redu? C:\Users\IGOR\Desktop\cas3\main.js:1 (function (exports, require, module, __filename, __dirname) { import sayHi from "./sayHi.js"; ^^^^^ SyntaxError: Unexpected identifier at new Script (vm.js:80:7) at createScript (vm.js:274:10) at Proxy.runInThisContext (vm.js:326:10) at Module._compile (internal/modules/cjs/loader.js:664:28) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3) at createDynamicModule (internal/modules/esm/translators.js:73:15) at Object.meta.done (internal/modules/esm/create_dynamic_module.js:42:9) PS C:\Users\IGOR\Desktop\cas3>

Kako bi ste bili u mogućnosti da postavljate pitanja, morate biti ulogovani.