Upgrade Angular 2 to Angular 4 - Files Missing

355 views
Skip to first unread message

User Pv

unread,
Apr 4, 2017, 9:00:26 AM4/4/17
to Angular and AngularJS discussion

Hi

I have try to upgrade Angular 2 to Angular 4. I am facing the below error.

ERROR in D:\angular4sample\angular4sample\node_modules\angular2-platform-node\node-renderer.d.ts
(2,10): error TS2305: Module '"D:/angular4sample/angular4sample/node_modules/@angular/platform-browser/platform-browser"' has no exported member 'AnimationDriver'.

But Before upgrading i can see animation_driver and lot of files.

While upgrading the anuglar 4 i cant able to see these files and shown the above error,

This is my live project i have to fix it in angular 4.

Please guide me 

Sander Elias

unread,
Apr 4, 2017, 11:23:21 AM4/4/17
to Angular and AngularJS discussion
Hi Unnamed person,

This might happen if you have stale stuff in your node_modules.
remove the node_modules, do an npm clean cache, and an npm install.
If that's not working, please get back t me.

Regards
Sander

samarth.ma...@krtya.com

unread,
Apr 14, 2017, 2:36:47 AM4/14/17
to Angular and AngularJS discussion
I am getting this error please help me 

Sander Elias

unread,
Apr 14, 2017, 6:02:44 AM4/14/17
to Angular and AngularJS discussion
What did you try?

DECO

unread,
May 8, 2017, 9:48:50 AM5/8/17
to Angular and AngularJS discussion
I am also getting the same error.

Sander Elias

unread,
May 8, 2017, 10:07:46 AM5/8/17
to Angular and AngularJS discussion
Did you try my answer?

Regards
Sander

DECO

unread,
May 9, 2017, 6:15:12 AM5/9/17
to Angular and AngularJS discussion
reinstall the SpaTemplate

    dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

On Tuesday, April 4, 2017 at 4:00:26 PM UTC+3, User Pv wrote:

Hardik Chauhan

unread,
May 9, 2017, 11:14:11 AM5/9/17
to Angular and AngularJS discussion
If we delete the node_module folder and npm install it again, will that be an issue or just an extra effort ?


On Tuesday, April 4, 2017 at 8:53:21 PM UTC+5:30, Sander Elias wrote:

Sander Elias

unread,
May 9, 2017, 11:31:54 AM5/9/17
to Angular and AngularJS discussion
@Hardik, its not an issue, your node_modules is your own responsibility. If that gets out of sync somehow, the cause is unknown to any single package that's using it. Ultimately, it's NPM or yarnpkg that should keep this folder in working order, this has nothing to do with any angular related project.

@deco. did you try deleting the node_modules and the other steps I provided?

Regards
Sander
Reply all
Reply to author
Forward
0 new messages