`import =` is not supported by @babel/plugin-transform-typescript

2.7k views Asked by At

I'm using nx, and IntelliJ really wants to import Firestore like this:

import Firestore = firebase.firestore.Firestore;

I end up with the following error though when compiling:

import = is not supported by @babel/plugin-transform-typescript Please consider using import <moduleName> from '<moduleName>'; alongside Typescript's --allowSyntheticDefaultImports option.

I'm fairly new to the js ecosystem, so I'm not entirely sure of the best way to proceed.

0

There are 0 answers