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

Moment.js is there but still "Neither XDate or moment.js was found" #18

Closed
alvipeo opened this issue Jan 10, 2015 · 2 comments
Closed

Moment.js is there but still "Neither XDate or moment.js was found" #18

alvipeo opened this issue Jan 10, 2015 · 2 comments

Comments

@alvipeo
Copy link

@alvipeo alvipeo commented Jan 10, 2015

I don't use in my AngularJS app neither AMD nor Require so I just include moment.js. And after the validate.js is included. Still, I get "Neither XDate or moment.js was found" error.

This is where the problem is - line 659 (v. 0.3.2):
var moment = v.tryRequire("moment");

It returns null. But the global scope moment is defined.

@ansman
Copy link
Owner

@ansman ansman commented Jan 10, 2015

I'll check it out as soon as I'm back from vacation

On Sun, Jan 11, 2015 at 10:57 AM, alvipeo notifications@github.com
wrote:

I don't use in my AngularJS app neither AMD nor Require so I just include moment.js. And after the validate.js is included. Still, I get "Neither XDate or moment.js was found" error.
This is where the problem is - line 659 (v. 0.3.2):
var moment = v.tryRequire("moment");

It returns null. But the global scope moment is defined.

Reply to this email directly or view it on GitHub:
#18

@alvipeo
Copy link
Author

@alvipeo alvipeo commented Jan 10, 2015

Same at the line 677:

var moment = v.tryRequire("moment");

@ansman ansman closed this in 93aab0f Jan 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.