TypeError: Cannot read properties of undefined (reading 'createClient') in react + contentful

1.8k Views Asked by At

In my node project contentful is running same lines with my react project. But in react gives me an error, in the image below. I tried to reinstall again but it doesn't work. Did I miss something? Any help is highly appreciated.

enter image description here

Thank you

1

There are 1 best solutions below

0
On

import { createClient } from "contentful";

const contentfulClient = createClien({ "your code" });