I have the following webpack.config.js
var path = require(\"path\");
var webpack = require(\'webpack\');
module.exports = {
entry: {
\'ng2-auto-comple
Just add:
"lib": ["es6"] // means at least ES6
Don't change target.
Target is used to tell Typescript into which version of ECMAScript to compile your .ts files. Of course, you can change it, if the browser your application will be running in, will support that version of ECMAScript.
For example, I use "target": "es5" and "lib": ["es6"].
Another reason could be:
That your .ts file is not under "rootDir": "./YourFolder",