Uncaught Error: Cannot find module 'moment'


#1

I use momentjs:moment package in 1.3;

import {moment} from  'meteor/momentjs:moment';

but show Uncaught Error: Cannot find module 'moment'.
please help me.


#2

you can use the npm package and then

import moment from 'moment';


#3

Thanks, for your reply.
Now I tried use moment npm.
So should I remove momentjs:moment or not?


#4

use the names of the npm repository


#5

I would remove momentjs:moment from meteor, there’s no need for it anymore.