I have the following webpack.config.js
var path = require(\"path\");
var webpack = require(\'webpack\');
module.exports = {
entry: {
\'ng2-auto-comple
To solve this you only need to import map method in your ts file like this:
import { map } from 'rxjs/operators';
Map
, Set
and Promise
are ES6
features.
In your tsconfig.json
you are using:
"target": "es5"
This causes the compiler to use the normal es5 lib.d.ts, which lacks the definitions for the above types.
You want to use the lib.es6.d.ts:
"target": "es6"
In your tsconfig.json just change "target": "es5" to "target": "es6"