Это уже в третьем варианте: (alias) moment(inp?: m

Jan 20, 2021

Это уже в третьем варианте:

(alias) moment(inp?: moment.MomentInput, strict?: boolean | undefined): moment.Moment (+2 overloads)
export namespace moment

@param strict Strict parsing disables the deprecated fallback to the native Date constructor when parsing a string. 'moment' refers to a UMD global, but the current file is a module. Consider adding an import instead.

Во втором такая же ошибка.

В первом гора ошибок везде.