0

I am trying to import a module in Node.js, but I keep getting this error:

import { test } from "Modulename";
       ^

SyntaxError: Unexpected token {

Is there something I'm doing wrong?

jonrsharpe
  • 107,083
  • 22
  • 201
  • 376

0 Answers0