0

export class SomeClass extends Qu {
^^^^^^

SyntaxError: Unexpected token 'export'

That's the error message in the console

This is an export line in the file:

  • use `module.exports = SomeClass;` https://www.tutorialsteacher.com/nodejs/nodejs-module-exports – yochanan sheinberger May 16 '22 at 23:22
  • 1
    Make sure that either your module has the `.mjs` and not `.js` extension or you put `"type": "module"` in your `package.json` file to have all your `.js` files treated as ES modules. – CherryDT May 16 '22 at 23:33
  • @yochanansheinberger Are you a time traveler from the last? – jabaa May 17 '22 at 00:29

0 Answers0