Here is the code snippet I am dealing with:
import * as errorHandler from "errorhandler";
import { default as app } from "./express";
import * as cors from "cors";
/**
* Error Handler. Provides full stack - remove for production
*/
app.use(errorHandler());
I encountered the following error:
(function (exports, require, module, __filename, __dirname) { import * as errorHandler from "errorhandler"; SyntaxError: Unexpected token import
Any suggestions or assistance on resolving this issue would be greatly appreciated.