Skip to content
Discussion options

You must be logged in to vote

Edited answer with a fix in case you need to continue using ky-universal
See discussion at #12761

Original answer
I ended up resolving this issue. It appears it was some conflict in the ky-universal library I was using coupled with the latest fetch changes in Next 4.0. I think in my initial attempt to convert to using fetch(), I must have used it wrong.

I ended up doing the following and getting my project upgraded:

  1. Removed all of the env var definitions in my next.config.js file, which is nice.
  2. Replaced all ky() calls with fetch(), and removed the ky and ky-universal packages entirely.
// Old
const response = await ky.post('my_absolute_path', { json: myRequestData }).json

// New
const d…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@squishydough
Comment options

@squishydough
Comment options

@nifte
Comment options

@squishydough
Comment options

Comment options

You must be logged in to vote
3 replies
@nifte
Comment options

@squishydough
Comment options

@nifte
Comment options

Answer selected by squishydough
Comment options

You must be logged in to vote
2 replies
@squishydough
Comment options

@paambaati
Comment options

Comment options

You must be logged in to vote
1 reply
@squishydough
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants