Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

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

Comments

@alvipeo
Copy link

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 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 commented Jan 10, 2015

Same at the line 677:

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

@ansman ansman closed this as completed in 93aab0f Jan 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants