Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README hint: @typings/core-js errors when consuming library #15

Open
real-marco-b opened this issue Feb 21, 2017 · 0 comments
Open

README hint: @typings/core-js errors when consuming library #15

real-marco-b opened this issue Feb 21, 2017 · 0 comments

Comments

@real-marco-b
Copy link

What I did:

  1. Build and publish/pack angular-library-seed npm
  2. Clone https://github.com/angular/quickstart as library consumer project.
  3. Integrate published library via npm into consumer project
  4. "npm run build" consumer project

Getting loads of typescript errors regarding typings/core-js. Seems like a core-js dependency conflicts with Es6 definitions distributed with typescript.
As a workaround, I downgraded es2015 lib to es5 lib within tsconfig.json:

"lib": [ "es5", "dom" ],

instead of:

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

This worked for me.

This is not a problem with the angular-library-seed itself, but consuming the library from within an angular 2 quickstart clone should be a common scenario.
This information might be an interesting addition to README.md or some other troubleshooting doc :)

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

No branches or pull requests

1 participant