Viene eseguito 'prova1.js'
Questo e' il contenuto di 'launch.json':
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\prova1.js"
}
]
}
e questo e' quanto visualizzato nella 'DEBUG CONSOLE':
C:\Program Files\nodejs\node.exe --inspect-brk=25949 prova1.js
Debugger listening on ws://127.0.0.1:25949/dd0030ea-6884-4fe9-aca5-8246753e0316
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
Waiting forc:\Users\Amministratore\Documents\TEMPX\VSCode-JavaScript\prova1.js:1
import {saluta} from "prova2.js";
^^^^^^
SyntaxError: Cannot use import statement outside a module