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

Uncaught TypeError: s.indexOf is not a function #56

Open
zorzv opened this issue May 14, 2020 · 0 comments
Open

Uncaught TypeError: s.indexOf is not a function #56

zorzv opened this issue May 14, 2020 · 0 comments

Comments

@zorzv
Copy link

zorzv commented May 14, 2020

I'm using moment to make a calendar and this line is throwing the above error:

ev.date = moment(ev.eventTime, "YYYY-MM-DD");

where eventTime is:
{eventName: 'Interview - Jr. Web Developer', calendar: 'Work', color: 'orange', eventTime: moment("2020-05-16")},

The calendar works without moment-hijri dependency but I want to add hijri dates to the calendar.I haven't parsed hijri dates so far.

This line from moment-hijri.js is throwing the error:

string = string.slice(string.indexOf(parsedInput) + parsedInput.length)

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

1 participant