quicktype
quicktype copied to clipboard
TypeScript error: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later..
npm install @solana/spl-token-registry
npm_config_yes=true npx quicktype node_modules/@solana/spl-token-registry/dist/main/lib/tokenlist.d.ts -o src/models.rs
Output:
Error: TypeScript error: Cannot find name 'Map'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later..
https://github.com/solana-labs/token-list/blob/main/src/lib/tokenlist.ts
I got the same error despite the fact that tsconfig.json specifies "lib": ["es2020"],
I got the same error in the turbo repo, even though i am correctly extending my tsconfig from typescript-config/base .json file. Any solution?