quicktype icon indicating copy to clipboard operation
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..

Open gitmalong opened this issue 3 years ago • 2 comments

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

gitmalong avatar Dec 30 '21 16:12 gitmalong