Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
webmaxru opened this issue Dec 7, 2017 · 1 comment · Fixed by #8812
Labels
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful severity3: broken

Comments

@webmaxru
Copy link
Member

webmaxru commented Dec 7, 2017

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.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful severity3: broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants