Angular-CLI-Based-Template: Angular CLI Upgrade Issues #286

Closed
opened 2025-08-09 17:15:42 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @naveedahmed1 on 12/7/2017

@SteveSandersonMS Angular CLI based projects contains a file package-lock.json. which doesn't seem to exist in project generated through this template.

The issue is when we try to upgrade the project generated through this template to a newer version of Angular CLI it throws errors like below:

Cannot find module 'webpack/lib/dependencies/ContextElementDependency'

The solutions suggested for such errors is to delete the package-lock.json and node_modules folder and then run npm install.

Since, I am unable to locate this file in this project, I am unable to upgrade to new version of Angular CLI.

*Originally created by @naveedahmed1 on 12/7/2017* @SteveSandersonMS Angular CLI based projects contains a file `package-lock.json`. which doesn't seem to exist in project generated through this template. The issue is when we try to upgrade the project generated through this template to a newer version of Angular CLI it throws errors like below: `Cannot find module 'webpack/lib/dependencies/ContextElementDependency'` The solutions suggested for such errors is to `delete the package-lock.json` and `node_modules` folder and then run `npm install`. Since, I am unable to locate this file in this project, I am unable to upgrade to new version of Angular CLI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#286
No description provided.