You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do not support converting projects which have multiple apps within their .angular-cli.json file.
Currently we check for this in updateAngularCLIJson() and throw:
if(angularCliJson.apps.length!==1){thrownewError('Can only convert projects with one app');}
Issue
The problem is that updateAngularCLIJson() does not come until the fourth step in the conversion process:
exportdefaultfunction(schema: Schema): Rule{constoptions={ ...schema,name: toFileName(schema.name)};returnchain([moveFiles(options),branchAndMerge(chain([mergeWith(apply(url('./files'),[]))])),updatePackageJson(),updateAngularCLIJson(options),// <-- we don't throw until here// ...etc...
This means that we move the user's files around and perform all kinds of modifications only to end up exiting early. This leaves the repo in a mess, which the user has to manually restore to where they started.
Proposed Solution
We introduce a new first step to the pipeline which contains relevant fundamental checks for whether or not the conversion should be possible.
The text was updated successfully, but these errors were encountered:
Background
We do not support converting projects which have multiple apps within their .angular-cli.json file.
Currently we check for this in
updateAngularCLIJson()
and throw:Issue
The problem is that
updateAngularCLIJson()
does not come until the fourth step in the conversion process:This means that we move the user's files around and perform all kinds of modifications only to end up exiting early. This leaves the repo in a mess, which the user has to manually restore to where they started.
Proposed Solution
We introduce a new first step to the pipeline which contains relevant fundamental checks for whether or not the conversion should be possible.
The text was updated successfully, but these errors were encountered: