You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to reference it using a standard Typescript import statement,
I get these two errors:
'sanitize' can only be imported by using 'import sanitize = require(\"sanitize-filename\")' or by turning on the 'esModuleInterop' flag and using a default import.
`This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
As far as I can tell, this might be resolved changing export=sanitize to export sanitize.
AFAICT, the way which
sanitize
is exported isn't ideal:https://github.com/parshap/node-sanitize-filename/blob/master/index.d.ts#L8
When I try to reference it using a standard Typescript import statement,
I get these two errors:
As far as I can tell, this might be resolved changing
export=sanitize
toexport sanitize
.ref: https://stackoverflow.com/questions/68785926/this-module-can-only-be-referenced-with-ecmascript-imports-exports-by-turning-on
The text was updated successfully, but these errors were encountered: