Skip to content

Instantly share code, notes, and snippets.

@ng-model
Created March 31, 2017 16:47
Show Gist options
  • Save ng-model/0e7fee9007e490fea63a3a84c3c5d5a5 to your computer and use it in GitHub Desktop.
Save ng-model/0e7fee9007e490fea63a3a84c3c5d5a5 to your computer and use it in GitHub Desktop.
when i did changes related to moment in angular2-moment, i encounter these errors :(
ERROR in ./~/angular2-moment/calendar.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/calendar.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/difference.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/difference.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/from-unix.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/from-unix.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/duration.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/duration.pipe.js 3:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/subtract.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/subtract.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/date-format.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/date-format.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/add.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/add.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/time-ago.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/time-ago.pipe.js 4:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
ERROR in ./~/angular2-moment/utc.pipe.js
Module not found: Error: Can't resolve 'moment' in 'C:\Users\MKumar\my-app\node_modules\angular2-moment'
@ ./~/angular2-moment/utc.pipe.js 3:13-30
@ ./~/angular2-moment/index.js
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
webpack: Failed to compile.
@ng-model
Copy link
Author

ng-model commented Mar 31, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment