contentful.js icon indicating copy to clipboard operation
contentful.js copied to clipboard

Entry not found in Contentful

Open angelodias-appno opened this issue 1 year ago • 0 comments

This is Typescript typing issue.

Expected Behavior

"contentful": "11.3.3",
import { Entry , EntrySkeletonType } from "contentful";

This should give me zero errors.

Actual Behavior


import { Entry , EntrySkeletonType } from "contentful"; // <-- Entry not found in 'contentful'

(or EntrySkeletonType not found in 'contentful')

Possible Solution

I bet it's something related to Contentful version. When I roll back to 10.12.6 the error vanishes

Steps to Reproduce

  1. Install 10.12.6
  2. Add in a .ts file the line import { Entry, EntrySkeletonType } from "contentful";
  3. Don't see the error
  4. 'Upgrade to latest (11.3.3)
  5. See the error

Context

I'm building the types for my project and this is getting in the way :(

Environment

  • Language Version: v18.19.0
  • Package Manager Version: pnpm 9.15.0
  • Operating System: Darwin 9494.local 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103 arm64
  • Package Version: 11.3.3
  • Which API are you using?: Contentful main package and Management

angelodias-appno avatar Dec 19 '24 20:12 angelodias-appno