moment-timezone
moment-timezone copied to clipboard
Namespace '"*"' has no exported member 'MomentFormatSpecification'
Hi,
I am doing a project in ionic 4, but it gives me all the time the image error when I compile.
import * as momentTz from 'moment-timezone';
"moment": "^2.26.0",
"moment-timezone": "^0.5.31",
Thanks
Well the moment-timezone TS spec imports the moment TS spec and uses some interfaces. I don't really know what is supposed to happen, but other users are not complaining.
@manzajaro if you can provide some simple steps to reproduce (i.e set up environment). You don't expect everybody on our team to know what ionic is and how to use it (assuming it still exists 2 years later :)).
i am getting same issue
This could be due to conflicting versions of the core moment
library appearing in your dependency tree. See this comment for a detailed explanation — it might fix compilation issues like this.