Tsd: @types/bluebird missing 'Map'

Created on 25 Jul 2017  ·  2Comments  ·  Source: DefinitelyTyped/tsd

@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'.

Most helpful comment

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.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Diullei picture Diullei  ·  70Comments

lazlojuly picture lazlojuly  ·  9Comments

blakeembrey picture blakeembrey  ·  15Comments

L6Echo picture L6Echo  ·  7Comments

jbpros picture jbpros  ·  31Comments