You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate published library via npm into consumer project
"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 :)
The text was updated successfully, but these errors were encountered:
What I did:
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 :)
The text was updated successfully, but these errors were encountered: