Skip to content

Regression: ng-add @nativescript/schematics doesn't work with @angular/cli@6.1.0-beta.0 or -beta.2 #11174

Closed
@sebawita

Description

@sebawita

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Area

- [x] devkit
- [ ] schematics

Versions

@angular/cli@6.1.0-beta.0 - not working
@angular/cli@6.0.8 - works OK

Repro steps

run the following commands

with @angular/cli@6.0.8

ng new proj608
cd proj608
ng add @nativescript/schematics

with @angular/cli@6.1.0-beta.0

ng new proj610
cd proj610
ng add @nativescript/schematics

The proj608, will contain the App_Resources folder with a bunch of files
The proj610, will be missing the App_Resources folder.

The code that calls App_Resources is located here:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/add-ns/index.ts#L130-L135

Which then calls this simple schematic:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/app-resources/index.ts

I have a feeling that the last mergeWith that executes in the schematics chain erases all the previous ones:
https://github.com/NativeScript/nativescript-schematics/blob/master/src/add-ns/index.ts#L199

The log given by the failure

Desired functionality

Mention any other details that might be useful

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions