Skip to content

[app-shell] Cannot read property 'split' of undefined (+ explanation, + temporary workaround) #8793

Closed
@webmaxru

Description

@webmaxru

Versions

Angular CLI: 1.6.0
Node: 8.2.1
OS: darwin x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cli: 1.6.0
@angular-devkit/build-optimizer: 0.0.35
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.41
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0
@schematics/angular: 0.1.10
@schematics/schematics: 0.0.10
typescript: 2.4.2
webpack: 3.10.0

Repro steps

ng new testApp --routing
ng generate universal testAppUniversal
npm install
ng generate app-shell --universal-app test-app-universal

Observed behavior

Cannot read property 'split' of undefined

Desired behavior

Create app-shell infrastructure

Mention any other details that might be useful (optional)

The problem is - according to its schematics, ng generate app-shell expects the name of app-shell, which is unneeded. So if you run this like ng generate app-shell myShell it works fine, and this myShell never used/mentioned in the resulting code. This could be a temporary workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulseverity3: broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions