4.0.0-rc.6 [platform-server] - Cannot find module '@angular/animations/browser'. & other errors

See original GitHub issue

[x] bug report => search github for a similar issue or PR before submitting

Current behavior When upgrading from rc5 to rc6 these errors now pop-up from the generated typings within Angular platform-browser & platform-server.

ERROR in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-browser/animations/src/animation_renderer.d.ts (1,53): Cannot find module '@angular/animations/browser'.)

    ERROR in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-browser/animations/src/providers.d.ts (8,276): Cannot find module '@angular/animations/browser'.)

    ERROR in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-server/src/server.d.ts (8,34): Cannot find module '@angular/animations/browser'.)

    ERROR in Error encountered resolving symbol values statically. Could not resolve @angular/animations/browser relative to C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-server/platform-server.d.ts., resolving symbol ɵSERVER_RENDER_PROVIDERS in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-server/platform-server.d.ts, resolving symbol ServerModule in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-server/platform-server.d.ts, resolving symbol ServerModule in C:/Users/mark.pieszak/Documents/GitHub/ng-universal-demo/node_modules/@angular/platform-server/platform-server.d.ts

    ERROR in ./~/@angular/platform-server/@angular/platform-server.es5.js
    Module not found: Error: Can't resolve '@angular/animations/browser' in 'C:\Users\mark.pieszak\Documents\GitHub\ng-universal-demo\node_modules\@angular\platform-server\@angular'
     @ ./~/@angular/platform-server/@angular/platform-server.es5.js 13:0-63
     @ ./src/app/server-app.module.ts
     @ ./src/main.server.ts

    ERROR in ./~/@angular/platform-browser/@angular/platform-browser/animations.es5.js
    Module not found: Error: Can't resolve '@angular/animations/browser' in 'C:\Users\mark.pieszak\Documents\GitHub\ng-universal-demo\node_modules\@angular\platform-browser\@angular\platform-browser'
     @ ./~/@angular/platform-browser/@angular/platform-browser/animations.es5.js 13:0-249
     @ ./~/@angular/platform-server/@angular/platform-server.es5.js
     @ ./src/app/server-app.module.ts
     @ ./src/main.server.ts

Expected behavior No errors

Minimal reproduction of the problem with instructions Repro here: https://github.com/markpieszak/ng-universal-demo/tree/rc6-error yarn install && npm start

  • Angular version:

4.0.0-rc.6

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

35reactions
MarkPieszakcommented, Apr 9, 2018

(Just incase others find it) Make sure @angular/animations is installed as a dependency, and the errors will go away.

npm i --S '@angular/animations' 
16reactions
YoLoADRcommented, May 2, 2017

Try this command npm install ‘@angular/animations’ – save

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module angular/animations - Stack Overflow
When I run the command like npm start, I get an error as mentioned above. I even tried to install angular-animate using this...
Read more >
angular/platform-server - UNPKG
13, import { ɵAnimationEngine } from '@angular/animations/browser';. 14, import { ɵHttpInterceptingHandler, HttpHandler, HttpBackend, HttpClientModule } ...
Read more >
cannot find module '@angular/core/testing' from ... - You.com
I face this error when I want to run unit tests for testing the ngrx state (effects, reducers, selectors...) Cannot find module '@angular/core/testing ......
Read more >
1020465 – Error: Cannot find module 'express' using node.js ...
Verified this bug with 2.0/2013-10-21.3, and PASS After create nodejs app, log into gear, its log show that, it is working fine. >...
Read more >
init1 (ddfd0782) · Commits · zinnour / fitbitml - GitLab
super(`Project '${projectName}' could not be found in Workspace.`); ... "webpack-subresource-integrity": "1.1.0-rc.6".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found