Comments (12)
@lordgreg are you using typings
in your project?
try typings install --save moment
from ngx-moment.
Hi,
Can you please share a small plunkr example (or git repo) that reproduces the problem?
Thanks!
from ngx-moment.
@urish
I can give you my private bitbucket repo access. Please give me your email from that page and I'll give you more info there. If you're using slack or similar, please let me know.
from ngx-moment.
to add to my error, checking console, I see typescript has thrown few errors:
ERROR in [default] C:/test/node_modules/angular2-moment/CalendarPipe.ts:4:24
Cannot find module 'moment'.
ERROR in [default] C:/test//node_modules/angular2-moment/DateFormatPipe.ts:4:24
Cannot find module 'moment'.
ERROR in [default] C:/test//node_modules/angular2-moment/TimeAgoPipe.ts:4:24
Cannot find module 'moment'.
from ngx-moment.
That fixed the errors in console. I'll try to make plunkr (no idea how since this is ionic2 project). It would be better if I would somehow just grant you access to my private repo
from ngx-moment.
Seems like this issue could be related: angular/angular#6005.
Does it happen consistently?
Does calling enableProdMode()
help?
from ngx-moment.
@urish Just tested it with enableProdMode()
and yes. The error is gone. However,... is that even smart thing to do while developing app? Or... can this error be avoided somehow?
from ngx-moment.
Good question :-) I will ping the team to see if they have any input about this
from ngx-moment.
same here with ionic2
from ngx-moment.
Closing. If this still happens, please reopen
from ngx-moment.
@urish is there a way to avoid this error in dev mode or do we need to enable prod mode?
from ngx-moment.
@urish still happens, on 0.8.0
from ngx-moment.
Related Issues (20)
- amDateFormat does not refresh and and the browser is frozen
- Tslib missing from package.json file HOT 3
- amDuration set Humanize optionnal or create new pipe
- Check value emptiness in LocalTimePipe HOT 1
- Angular 8/9 HOT 1
- [docs] improve docs, how to import to core module HOT 1
- Support ng-add schematics HOT 1
- Setting relativeTimeThresholdOptions object doesn't work HOT 3
- Pipe could not be found with Angular 9 (Ivy enabled by default) HOT 7
- Problems with moment 2.25.0 HOT 16
- Getting warnings and errors related to moment and ngx-moment during compilation (ng serve) along with broken-page for timeago pipe HOT 1
- can't use amLocale with amLocal HOT 2
- ERROR Error: AddPipe: missing required arguments while using amAdd HOT 1
- ModuleWithProviders usage without type parameter no longer supported in angular 10. HOT 2
- Moment start with wrong time
- momentConstructor$a is not a function HOT 1
- i get warnings about pipes not being found despite importing everything HOT 2
- Errors since update to latest version (6.0.0) HOT 22
- Angular 13 + ngx-moment 6.0.2: This module is declared with using 'export = HOT 9
- amDateFormat - momentConstructor$9 is not a function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-moment.