Skip to content
This repository was archived by the owner on Apr 11, 2019. It is now read-only.
This repository was archived by the owner on Apr 11, 2019. It is now read-only.

ReferenceError: Parse is not defined #47

@arcreative

Description

@arcreative

Simply including the source file (min or not) doesn't work for me, it looks like it's utilizing a global var that's not defined:

(function() {
  'use strict';

  /* global Parse: false */
  angular.module('angular-jsonapi-parse', ['angular-jsonapi'])
    .constant('Parse', Parse);
})();

Went to run the demo with gulp serve as the documentation suggested to see if I could find out more, but that's not working either... I just get Cannot get /.

EDIT

Looks like this is just poorly documented and needs the following prior to launch:

<script src="lib/parse/parse.min.js"></script>
<script src="lib/pluralize/pluralize.js"></script>
<script src="lib/validate/validate.min.js"></script>
<script src="lib/angular-uuid4/angular-uuid4.min.js"></script>

That said, why do we need to include parse even if we don't want to use parse? Can't you conditionally set the constant so we don't have to include parse just to appease a module we're not using, or hack it e.g. <script>window.Parse = { iShould: 'notBeNeeded' };</script>?

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