APIDevTools / json-schema-ref-parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers
https://apitools.dev/json-schema-ref-parser
MIT License
942 stars 226 forks source link

Module Not Found #337

Closed Jonneal3 closed 5 months ago

Jonneal3 commented 5 months ago
Screenshot 2024-03-05 at 3 35 45 PM

Module not found: ESM packages (node-fetch) need to be imported. Use 'import' to reference the package instead.

Next 14 Apple silicon M2 Next Build

Anyone running into this issue??

jonluca commented 5 months ago

What node version are you using? We didn't change anything with the build, although there was an async import of node-fetch in there

Can you try v11.2.2?

Jonneal3 commented 5 months ago

@jonluca sure 1 sec let me try that now

Jonneal3 commented 5 months ago
Screenshot 2024-03-05 at 4 07 08 PM

Actually yes looks like I am currently using that version

jonluca commented 5 months ago

Did you bump the version to that? There's no references to node-fetch in the version 11.2.2. Can you try clearing your node modules and let me know if it still is happening?