ms icon indicating copy to clipboard operation
ms copied to clipboard

'esModuleInterop' flag and referencing its default export.ts

Open productdevbook opened this issue 3 years ago • 3 comments

This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.ts(2497)

image

productdevbook avatar Jun 10 '22 07:06 productdevbook

Which version are you using? Could you try using the latest canary version which has ES Modules support?

leerob avatar Jul 11 '22 04:07 leerob

Which version are you using? Could you try using the latest canary version which has ES Modules support?

"ms": "3.0.0-canary.1",

productdevbook avatar Jul 11 '22 08:07 productdevbook

Ah, I think I see the issue. Your types are coming from @types/ms, but with the 3.0 release, types are included with the ms package directly. You can remove @types/ms.

leerob avatar Jul 11 '22 17:07 leerob