i have this problem only in code editor, I can lint, build and test without problems, but files with test have red flag in webstorm
// CommonJS export
module.exports = DiffEngine
module.exports.default = DiffEngine
// ES module export
export default DiffEngine
https://stackoverflow.com/questions/62273153/this-module-is-declared-with-using-export-and-can-only-be-used-with-a-defau
i have this problem only in code editor, I can lint, build and test without problems, but files with test have red flag in webstorm
I know that
export =is docummented here https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require but it is not supported properly by IDE probably, on the other hand thisworks both for IDE and support all methods of imports