Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find module #132

Closed
DoYouKnowTheAnswer opened this issue Feb 15, 2021 · 2 comments
Closed

Can't find module #132

DoYouKnowTheAnswer opened this issue Feb 15, 2021 · 2 comments

Comments

@DoYouKnowTheAnswer
Copy link

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)

@gburgett
Copy link
Member

gburgett commented Feb 16, 2021

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.

@jpowell
Copy link
Member

jpowell commented Feb 16, 2021

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

@gburgett gburgett mentioned this issue Mar 31, 2021
@gburgett gburgett closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants