Ionic index.html cannot find moment.js and angular-moment.js


#1

Hi i’m getting this errors on application start in console:


Steps i do:
npm install angular-moment moment --save
then add this to index.html

<script src="components/moment/moment.js"></script>
<script src="components/angular-moment/angular-moment.js"></script>

I spent last night on this. Tried to install with bower. Changed lot of path combinations. What could be wrong?


#2

+1, did you ever resolve this?


#3

Yes, i installed this plugin with bower. And created file .bowerrc with this content

 "directory": "www/lib"
}```

then path to files installed via bower are in `lib/node_modules/...`