1

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

Aljohn Yamaro
  • 2,629
  • 25
  • 22
  • I have the same issue here and tried many versions including yours and the one that I have working on other projects (the destructured one proposed as an answer) and nothing works. In my case I use SvelteKit instead of React. – Mig Jul 24 '22 at 06:14

1 Answers1

3

import { createClient } from "contentful";

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

aerials
  • 31
  • 2