Reputation: 59
I was having a problem when converting my Angular App into Angular Universal. I'm running this command " ng add @nguniversal/express-engine --clientProject my-app"
An unhandled exception occurred: Cannot find module '@schematics/angular/utility/json-file' Require stack:
Already checked the net but I can't see any error that is exactly the same as mine.
Upvotes: 0
Views: 232
Reputation: 36
I suspect this is an issue with Angular CLI version. Projects created with angular/cli v9 or 10 don’t have this file, but project created with angular/cli v11 have this file.
I copied the files (json-file.js, json-file.d.ts) from a v11 project to a v10 project, and the command works fine.
Upvotes: 2