[TypeError: adapter is not a function] - fetching content in Contenful on a Server Component #43120
Closed
1 task done
Labels
area: app
App directory (appDir: true)
bug
Issue was opened via the bug report template.
please add a complete reproduction
The issue lacks information for further investigation
Runtime
Related to Node.js or Edge Runtime with Next.js.
Verify canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:54 PDT 2022; root:xnu-8792.41.9~2/RELEASE_X86_64
Binaries:
Node: 16.16.0
npm: 8.11.0
Yarn: 1.22.19
pnpm: N/A
Relevant packages:
next: 13.0.5-canary.2
eslint-config-next: 13.0.2
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Chrome 107.0.5304.110∑
How are you deploying your application? (if relevant)
still in local
Describe the Bug
When I try to fetch content in Contentful on a fresh Next.js 13 application, i get this error:
[TypeError: adapter is not a function]
The files I use to describe the error are:
Expected Behavior
I should be able to get the results of the api call
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/addsac/PegasoDigitalStudio
To Reproduce
Clone the rep, run on terminal: "npm run dev", open localhost:3000.
The text was updated successfully, but these errors were encountered: