Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type error: ',' expected. export { type FieldsType} during next.js build #1969

Open
ebuka-nwabueze opened this issue Jul 21, 2023 · 4 comments

Comments

@ebuka-nwabueze
Copy link

ebuka-nwabueze commented Jul 21, 2023

Hi,
I'm experiencing the error message below when i run next build:

error

info  - Linting and checking validity of types ..Failed to compile.

./node_modules/contentful/dist/types/types/query/index.d.ts:1:15
Type error: ',' expected.

> 1 | export { type FieldsType, EntrySkeletonType, type ConditionalFixedQueries, type ConditionalListQueries, } from './util';
    |               ^
  2 | export * from './equality';
  3 | export * from './existence';

I'd be very grateful for any helpful response. Thanks

Environment

  • Language Version: Node 16.19.0
  • Package Manager Version: 8.19.3
  • Contentful: 13.3.6
  • Next: 13.0.4
  • Typescript: 4.4.3
  • Which API are you using?: Delivery
@noidsoup
Copy link

experiencing the same error when using any contentful package above 9.3.5

@ah584d
Copy link

ah584d commented Feb 6, 2024

same thing, any update?

@ebuka-nwabueze
Copy link
Author

ebuka-nwabueze commented Feb 6, 2024 via email

@ah584d
Copy link

ah584d commented Feb 7, 2024

I found the solution , I had a very old TS version (3.9 OMG!!!) in the project, and this upgrade needs ts 4.1 and above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants