"moment" has no exported member 'default'
Try adding "allowSyntheticDefaultImports": true
to your tsconfig.json
under the "compilerOptions"
You seems to have trouble importing moment
As you can see in the documentation,
For Typescript 2.x try adding "moduleResolution": "node"
in compilerOptions
in your tsconfig.json
file and then use any of the below syntax:
import * as moment from 'moment';
import moment = require('moment');
PS: Make sure you have installed moment.js
with npm
:
npm install --save moment