Skip to content

ERROR in node_modules/@angular/platform-browser/animations/animations.d.ts:37:22 #31348

Closed

Description

@dranovsk

🐞 bug report

Affected Package

The issue is caused by package @angular/compiler

Is this a regression?

Yes, the previous version in which this bug was not present was: 8.1.0-next.2

Description

Ivy es2015 build fails after upgrade to 8.1.0-rc.0 with following error:
ERROR in node_modules/@angular/platform-browser/animations/animations.d.ts:37:22 - error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

37 export declare class BrowserAnimationsModule {
~~~~~~~~~~~~~~~~~~~~~~~

🔬 Minimal Reproduction

https://stackblitz.com/...

🔥 Exception or Error



ERROR in node_modules/@angular/platform-browser/animations/animations.d.ts:37:22 - error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class

37 export declare class BrowserAnimationsModule {

🌍 Your Environment

Angular Version:



Angular CLI: 8.1.0-rc.0
Node: 10.15.3
OS: linux x64
Angular: 8.1.0-rc.0
... animations, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.801.0-rc.0
@angular-devkit/build-angular     0.801.0-rc.0
@angular-devkit/build-optimizer   0.801.0-rc.0
@angular-devkit/build-webpack     0.801.0-rc.0
@angular-devkit/core              8.1.0-rc.0
@angular-devkit/schematics        8.1.0-rc.0
@angular/cdk                      8.0.1
@angular/material                 8.0.1
@ngtools/webpack                  8.1.0-rc.0
@schematics/angular               8.1.0-rc.0
@schematics/update                0.801.0-rc.0
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.35.0

Anything else relevant?

Activity

  1. added this to the needsTriage milestone on Jun 28, 2019
  2. alexzuza commented on Jun 29, 2019

    @alexzuza
    Contributor

    Duplicate of #30972. Seems should be closed by angular/angular-cli#14934

    So for now you can either

  3. dranovsk commented on Jun 30, 2019

    @dranovsk
    Author

    @alexzuza running ivy-ngcc manually fixed the issues.

    Thanks, closing the issue.

  4. angular-automatic-lock-bot commented on Sep 15, 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.

  5. locked and limited conversation to collaborators on Sep 15, 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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions