DefinitelyTyped / tsd

[DEPRECATED] TypeScript Definition manager for DefinitelyTyped
Apache License 2.0
1.12k stars 135 forks source link

@types/bluebird missing 'Map' #302

Closed gpresland closed 6 years ago

gpresland commented 6 years ago

@types/bluebird gives the following error:

node_modules/@types/bluebird/index.d.ts(623,33): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(623,78): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(810,39): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(810,78): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(813,27): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(813,65): error TS2304: Cannot find name 'Map'.
gpresland commented 6 years ago

Moved to:

https://github.com/types/npm-bluebird/issues/46

nycdotnet commented 6 years ago

Hi - I think you're still in the wrong spot. This is the repo for a command line tool tsd which is no longer used. While I'm here, I suspect your issue is that you don't have the right 'lib' setting in your tsconfig.json file. See here. https://www.typescriptlang.org/docs/handbook/compiler-options.html You might need lib "es2015" to get Map. The lib setting basically lets TypeScript know what is available in your environment. Hope that helps. If not, stack overflow is the right place to ask for help as what you're describing above is not a bug in the definition.