SyntaxError, cannot use import statement outside a module, occurs even with “type”:“module” in package.json

后端 未结 0 1350
感动是毒
感动是毒 2021-02-14 03:59

I am trying to use ES6 Modules to import Express. Although I added "type":"module" in my package.json. The error, SyntaxError: Cannot use

相关标签:
回答
  • 消灭零回复
提交回复
热议问题