Skip to content

fix: typescript transpilation / assertion error in 2.9.x #960

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

Conversation

rob-pocklington-a139759
Copy link

Case in Point
Using falcor@^2.0.6 with Angular 6 with Typescript 2.9.2 when generating source maps fails with this message from Typescript transpilation: Error: Debug Failure. False expression.

Issues fixed
Because of the a = b = c structure used below (in GetResponse.js and SetResponse.js):
var GetResponse = module.exports = function GetResponse(model, paths ...
This triggers the following github issue: microsoft/TypeScript#24963.

As we are using Angular 6, it is undesirable to change Typescript versions, so i'm fixing the problem at the source. There are other areas where this pattern exists in the falcor codebase, but this is the minimal change to solve our immediate issue. Happy to update the other files if it's a requirement.

I have tested our Angular project with this branch and it works successfully.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 93.46% when pulling bbfc2fc on rob-pocklington-a139759:fix-tsdocs-sourcemap-error-for-ts-2.9 into 96bf261 on Netflix:master.

@jcranendonk
Copy link
Contributor

Looks good! If you'd like to make more PRs of this type, please feel free to. I can cut a release either after this PR, or wait until you make additional changes.

@jcranendonk jcranendonk merged commit faf78b1 into Netflix:master May 6, 2019
@jcranendonk
Copy link
Contributor

Released in 2.0.7.

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.

3 participants