graffle: [7.0.1] broken types

After upgrading to 7.0.1 IDE complains about typings.

Screenshot

Screenshot 2024-05-11 at 11 39 45

Description

Reproduction Steps/Repo Link

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (4 by maintainers)

Most upvoted comments

did that earlier and it breaks everything, got like 200 errors lol.

@jasonkuhrt can you please bring the types back? It’s a tremendous breaking change.

Then it’s not about broken types. New issue welcome, thanks!

Yup, runtime, I’m using node 22.1.0.

@jasonkuhrt You’re totally right, didn’t expect types field to be legacy, but yeah using moduleResolution: "bundler" fixed my issue, but afraid of others that relays on TSC to bundle their libraries or applications, Thanks anyway!

@efstathiosntonas just change moduleResolution to be Bundler, but the issue with that, it might break other stuff

@efstathiosntonas but that issue got closed as well 🥲

@jasonkuhrt I believe we need the types field back, just for backward compatibility

I opened an issue yesterday and it was closed, and many others, the issue is TypeScript compiler doesn’t read the exports field in the package.json yet and relays only on the types field, in the v7 types field got removed