Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was 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

Description

@alvipeo

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.

Activity

  1. ansman commented on Jan 10, 2015

    @ansman
    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

  2. alvipeo commented on Jan 10, 2015

    @alvipeo
    Author

    Same at the line 677:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions