Skip to content

Angular LS doesn't work with node.js 9 #21420

Closed

Description

@anstarovoyt

I am working on Angular LS integration in WebStorm.
I have noticed that the integration doesn't work with node.js 9 because of the code
in node_modules/@angular/language-service/bundles/language-service.umd.js:8


var $reflect = {defineMetadata: function() {}, getOwnMetadata: function(){}};
((typeof global !== 'undefined' && global)||{})['Reflect'] = $reflect;

Source of the error: https://github.com/angular/angular/blob/master/packages/language-service/rollup.config.js#L49

Node.js throws the exception in this line https://github.com/nodejs/node/blob/master/lib/internal/process/next_tick.js#L63:

Reflect.apply(callback, undefined, tock.args);
 error:           Reflect.apply(callback, undefined, tock.args);
 TypeError: Reflect.apply is not a function
 error: TypeError: Reflect.apply is not a function
     at process._tickCallback (internal/process/next_tick.js:152:19)

Activity

  1. kyliau commented on Jan 10, 2018

    @kyliau
    Contributor

    Angular does not support Node 9 yet, but we will keep this in mind when upgrading.
    https://github.com/angular/angular/blob/master/package.json#L11

  2. added this to the Backlog milestone on Jan 23, 2018
  3. modified the milestones: Backlog, needsTriage on Feb 26, 2018
  4. mhegazy commented on May 7, 2018

    @mhegazy
    Contributor

    @chuckjaz any plans on fixing this issue? we are seeing it on VS as well..

  5. brian428 commented on May 23, 2018

    @brian428

    This seems rather pressing, especially since Node is now up to 10.x.

  6. added a commit that references this issue on Jun 4, 2018
    ca4305a
  7. gkalpak commented on Jun 4, 2018

    @gkalpak
    Member

    I created #24299, but I am not sure how to test it (I couldn't reproduce the issue 😕).

  8. anstarovoyt commented on Jun 4, 2018

    @anstarovoyt
    Author

    @gkalpak I have tested the changes it works fine!

  9. 1 remaining item

  10. anstarovoyt commented on Jul 3, 2018

    @anstarovoyt
    Author

    @chuckjaz any updates?

  11. prigara commented on Jul 6, 2018

    @prigara

    We've implemented a workaround in WebStorm, but we are really hoping to see the PR with the fix merged soon.

  12. added a commit that references this issue on Jul 9, 2018
    de1c44f
  13. added 2 commits that reference this issue on Jul 30, 2018
    5399c17
  14. angular-automatic-lock-bot commented on Sep 14, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  15. locked and limited conversation to collaborators on Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions