0

I have created a package for my Express application and am importing it, in the package I have:

'use strict';   
export default class BlogDatabase { ... }

In .babelrc, I have presets: ["es2015"] (works normally and I have seen several questions similar to mine, but the resolution was that they did not have presets for ES6, I do have them and it works for everything except import/export.)

But it still throws the following error saying that "export" is an unexpected token:

export
^^^^^^

Thank you for help

bast
  • 90
  • 8
user3104270
  • 625
  • 2
  • 10
  • 17

0 Answers0