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
The documentation states:
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:
Node.js: v21.7.1
contentful-management: 11.24.3