You import the module as "diary" (in package.json), here you are referencing it as "Diary.js", it's weird that it works, you should call it the same thing everywhere. I vote for "diary", but it's up to you.