node-auth0: Deepmerge is not a function

Version: 2.9.1 Node version: 6.10 Environment: AWS Lambda

I’m having trouble with a transitive dependency that this project is using called deepmerge, via rest-facade. At runtime I get an error deepmerge is not a function.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 33 (6 by maintainers)

Most upvoted comments

Aha, binning my node_modules and reinstalling has revealed that Auth0 is using deepmerge, through rest-facade.

├─┬ auth0@2.7.0
│ └─┬ rest-facade@1.10.1
│   └── deepmerge@1.5.2
└─┬ material-ui@1.0.0-beta.21
  └── deepmerge@2.0.1

Is it possible that these two versions of deepmerge are somehow conflicting? I can see how in Pacey’s case he’d end up with something similar if he was using a newer version of rest-facade that included a different version of deepmerge.

I’ll do some digging tomorrow to understand how these two packages are importing deepmerge.