import * as http from “http”
^
SyntaxError: Unexpected token *
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
:lady_beetle: The debugger could not be started. See Search results for debugger - Glitch Support
i think all is right and i already have type:“module”, in package.json
i try, and the new error are:
import * as express from “express”
my code start
var http = require(“http”)
import * as express from “express”
const app = express();
import { config } from “./config.js”;
import * as eventsub from “./eventsub”
let prefix = config.prefix;
app.use(express.static(‘public’));
app.get("/", function (request, response) {
response.sendFile(__dirname + ‘/views/index.html’);
});