Comments (4)
Hi,
Thank you!
jalali-moment uses moment as its dependency so when you install jalali-moment it will install moment.js automatically.
I think you have used somewhere this code import * as moment from 'moment';
and moment point to moment.js not jalali-moment.
from jalali-moment.
Hi,
In my angular 4 project,
There is no import * as moment from 'moment';
for sure.
On top of the component, there is:
import * as pmoment from 'jalali-moment';
and
inside of the body of a method:
const b = pmoment(); b.jYear(); // jYear is not available here
and typescript complains about it.
from jalali-moment.
It works well on plunker so the problem is in your project.
please make a plunker like your project or review your code you will find the problem.
from jalali-moment.
ok
from jalali-moment.
Related Issues (20)
- the days of a week HOT 1
- Wrong Result For jDay HOT 1
- How can i have persian month and day of the week name ? HOT 2
- Convert a Unix timestamp to moment HOT 1
- jalali diff not working on different server & client timezone HOT 2
- Gregorian to Jalali HOT 1
- Angular 11, "CommonJS or AMD dependencies can cause optimization bailouts" warning HOT 3
- end of week HOT 1
- problem with ie11 HOT 3
- Use ECMAScript 6 import/export instead of CommonJS HOT 1
- jalali-moment with vite and vue not working HOT 4
- does it makes Grafana in Farsi or just for showing date in reports? HOT 1
- 27/1/1400 can be interpereted different in different time zones HOT 1
- add function not worked properly HOT 2
- ایراد نمایش در بخش ثانیه HOT 1
- After converting, the date always comes back one day off HOT 3
- moment deprecation HOT 1
- jalali_moment__WEBPACK_IMPORTED_MODULE_1___namespace_cache is not a function HOT 1
- timezone in 1402 is not correct ! HOT 4
- error in angular 9 HOT 1
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 jalali-moment.