Using Rollup for Angular 2's AoT compiler and importing Moment.js

后端 未结 9 1704
天涯浪人
天涯浪人 2020-12-24 13:34

I\'m trying to follow the official AoT guide for Angular 2, and I\'m using Moment.js in my application. Moment.js is on my packages.json file, and I\'m using versio

9条回答
  •  [愿得一人]
    2020-12-24 13:44

    I tried all the solutions above, but none worked for me. What worked was

    import moment from 'moment-with-locales-es6';
    

提交回复
热议问题