Skip to content

Utilities.js Lodash not being defined, when underscore is defined by a superseding script #523

Description

@tb01923

WE use underscore on our site, and recently upgraded to node-orm2 2.1.15 with some immediate issues. It looks as though Utilities.js doesn't explicitly define the lodash variable and is therefore is causing issues with the cloneDeep function.

Change this:

  _ = require('lodash')

To This:

 var _ = require('lodash')

seems to do the trick. If you provide some instructions on how, I can provide a patch, or someone can make this change on our behalf.

Thanks

Activity

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