score:8

Accepted answer

@types/moment-timezone has been deprecated. try the following:

  1. npm uninstall @types/moment-timezone

  2. using the following code:

import * as moment from 'moment';
import 'moment-timezone';

also, take a look at the issue on github


Related Query

More Query from same tag