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
  • 115,751
  • 26
  • 228
  • 437

0 Answers0