watermarkchurch/contentful-schema-diff

Can't find module

DoYouKnowTheAnswer opened this issue · 2 comments

Steps to reproduce:

  1. Be sure you are running node v14.15.4
  2. install contentful-schema-diff
  3. run: $ contentful-schema-diff --from --to --token

Expected: migration scripts are created

Actual:
_http_agent.js:444
options = req[kRequestOptions];
^

TypeError: Cannot read property 'Symbol(requestOptions)' of undefined
at Agent.removeSocket (_http_agent.js:444:20)
at TLSSocket.onClose (_http_agent.js:371:11)
at TLSSocket.emit (events.js:327:22)
at net.js:673:12
at TCP.done (_tls_wrap.js:563:7)

This is something that's happening inside the Contentful Management javascript SDK. I'm tempted to rip that out and write my own client, as I've had issues with it before...

I tried upgrading the client but the issue still persists. I'll keep this issue open for now until either it's fixed in contentful or I can come up with a better solution.

For now, the workaround is to use Node 12.

I've reproduced this issue, and this thread seems to be related: nodejs/node#36364 (comment)

i was able to use nvm to downgrade to node 12.17 locally to use the package for now