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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@ansman

ansman Jan 10, 2015

Owner

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

Owner

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

This comment has been minimized.

Show comment
Hide comment
@alvipeo

alvipeo Jan 10, 2015

Same at the line 677:

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

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