Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Issues when targeting es5 #18

Open
abariatti opened this issue Mar 20, 2017 · 0 comments
Open

Issues when targeting es5 #18

abariatti opened this issue Mar 20, 2017 · 0 comments

Comments

@abariatti
Copy link

abariatti commented Mar 20, 2017

Hi,

On windows 10 / 64

Cloning the app,
npm install --global typescript webpack webpack-dev-server tslint
npm install
npm start

gives me a bunch of errors:

[at-loader] node_modules\@angular\core\src\facade\lang.d.ts:12:17
    'Map' only refers to a type, but is being used as a value here.

[at-loader] node_modules\@angular\core\src\facade\lang.d.ts:13:17
    'Set' only refers to a type, but is being used as a value here.

[at-loader] node_modules\@types\core-js\index.d.ts:47:36
    Cannot find name 'Iterable'.

[at-loader] node_modules\@types\core-js\index.d.ts:350:48
    Cannot find name 'PropertyKey'.

[at-loader] node_modules\@types\core-js\index.d.ts:351:52
    Cannot find name 'PropertyKey'.

Workaround:

On tsconfig.json
"target": "es5"
"target": "es6"

What should be done to target es5 correctly?

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

1 participant