An error appears when compiling a project. Mistake

Compile file code:

'use strict' import def from "./src/classes/server"; def.start(); 

Included file code:

 'use strict' import express from "express"; export default class Server { static start(port) { const app = express(); app.get('/', (req, res) => { res.sendfile(__dirname + "/src/index.html"); }); app.listen(port); } } 
  • If I remember correctly, the modules are experimental and still behind the flag - Alexey Ten
  • what do you call a project compilation , how do you run it? What is used for this? - Grundy

0