Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting warnings and errors related to moment and ngx-moment during compilation (ng serve) along with broken-page for timeago pipe #236

Open
ajaysarw opened this issue May 3, 2020 · 1 comment

Comments

@ajaysarw
Copy link

ajaysarw commented May 3, 2020

Description of the Issue and Steps to Reproduce:
ng serve --aot

I am getting following compilation warning/errors along with broken page related to timeago pipe

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 224:15-23 "export 'duration' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 558:12-18 "export 'isDate' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 64:52-60 "export 'isMoment' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 561:17-25 "export 'isMoment' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 573:15-23 "export 'isMoment' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 573:50-56 "export 'locale' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 409:15-24 "export 'parseZone' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 240:16-37 "export 'relativeTimeThreshold' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 267:15-19 "export 'unix' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 306:25-28 "export 'utc' was not found in 'moment'

WARNING in ./node_modules/ngx-moment/fesm2015/ngx-moment.js 306:47-50 "export 'utc' was not found in 'moment'

WARNING in ./node_modules/moment/src/lib/locale/locales.js Module not found: Error: Can't resolve './locale' in 'blah\blah\node_modules\moment\src\lib\locale' i 「wdm」: Compiled with warnings.

I am using windows along with gitbash

Here is my angular stack

@angular-devkit/architect 0.10.7
@angular-devkit/build-angular 0.10.7
@angular-devkit/build-optimizer 0.10.7
@angular-devkit/build-webpack 0.10.7
@angular-devkit/core 7.0.7
@angular-devkit/schematics 7.0.7
@angular/cdk 7.0.0
@angular/cli 7.0.7
@ngtools/webpack 7.0.7
@schematics/angular 7.0.7
@schematics/update 0.10.7
rxjs 6.3.3
typescript 3.1.6
webpack 4.19.1

@nickyg91
Copy link

nickyg91 commented May 4, 2020

See #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants