Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

@types/bluebird missing 'Map' #302

Closed
gpresland opened this issue Jul 25, 2017 · 2 comments
Closed

@types/bluebird missing 'Map' #302

gpresland opened this issue Jul 25, 2017 · 2 comments

Comments

@gpresland
Copy link

@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
Copy link
Author

Moved to:

typed-typings/npm-bluebird#46

@gpresland gpresland reopened this Jul 25, 2017
@nycdotnet
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants