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

Fix compiling API #5190

Merged
merged 2 commits into from
Mar 7, 2021
Merged

Fix compiling API #5190

merged 2 commits into from
Mar 7, 2021

Conversation

Gusted
Copy link
Contributor

@Gusted Gusted commented Mar 7, 2021

Note to myself: Now their are 2 versions installed 2.1.10 and 1.14.1 properly configuration setups should default to 2.1.10. But for sakes if I get into problems with this I hope I remember this note and don't waste some hours. Why 1.14.1, I don't know. npm --save-dev -E tslib defaults to 1.14.1. It seems like an NPM bug yarn add --dev -E tslib gives the correct 2.1.10. Damn dependency hell =).

Gusted added 2 commits March 7, 2021 14:52
- Since Typescript 4.2 some Helpers to transpile to 4.2 are deprecated/removed. This includes __spread and __spreadArrays microsoft/TypeScript#41523.
- We heavily use the spread syntax in Dark Reader and thus need those helper functions.
- Due the upgrade of 4.2, tslib was outdated and didn't had the new helper function `__spreadArray`.
- After good hours of skimming trough the compiler and using the wrong commands to update tslib(default to 1.x). manually updating it to 2.1 which includes this new functions microsoft/tslib#133
https://github.com/microsoft/tslib/releases/tag/2.1.0
the API can be properly compiled again.
- Resolves #My personal issues with the API.
@Gusted Gusted merged commit 904842e into master Mar 7, 2021
@Gusted Gusted deleted the FixApi-Patch branch March 7, 2021 13:59
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

Successfully merging this pull request may close these issues.

1 participant