-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
The documentation states:
import contentful from 'contentful-management'
const client = contentful.createClient(
{
// This is the access token for this space. Normally, you get the token in the Contentful web app
accessToken: 'YOUR_ACCESS_TOKEN',
},
{ type: 'plain' }
)
When running this code from within the Contentful App (react), the contentful variable is undefined.
I was able to make it work with the following instead:
import { createClient } from "contentful-management";
const client =createClient...
Node.js: v21.7.1
contentful-management: 11.24.3
fsegouin, mabel-lawrence-dxd, dvejmz, nicholasrussellconsulting and TH-VF
Metadata
Metadata
Assignees
Labels
No labels