How to bind third party module using webpack?

58 views Asked by At

I am using ng2-bs3-modal module to open modal popup. But when I run project using visual studio 2015, it giving me few errors. Most of them are indicating "Cannot find name 'Promise'". I have searched and I got vague idea about binding this module using webpack.

1

There are 1 answers

1
Brother Woodrow On

Usually that indicates missing typings. Try adding this to compilerOptions in tsconfig.json:

"lib": ["es2015", "dom"]