Open Splaktar opened 8 years ago
I thought that this might be related to https://github.com/angular/angular-cli/pull/1042, but that does not appear to be the case.
I was able to solve this by reverting the version of angular-universal
to:
"angular2-universal":"0.100.5",
From the version provided by the angular-cli beta.6 which is:
"angular2-universal":"0.101.5",
I also tried a newer version of universal, but saw the same behavior:
"angular2-universal":"0.101.9",
I also tried with the latest of all of the angular-universal libraries, but saw the same problem:
"@angular/platform-server": "2.0.0-rc.1",
"@angular/service-worker": "0.2.0",
"@angular/app-shell": "0.0.0",
"angular-cli": "1.0.0-beta.6",
"angular2-broccoli-prerender": "0.11.5",
"angular2-express-engine": "0.14.1",
"angular2-universal":"0.102.1",
"angular2-universal-polyfills": "0.4.1",
"codelyzer": "0.0.20",
"ember-cli-inject-live-reload": "1.4.0",
"jasmine-core": "2.4.1",
"jasmine-spec-reporter": "2.5.0",
"karma": "0.13.22",
"karma-chrome-launcher": "1.0.1",
"karma-jasmine": "1.0.2",
"preboot": "2.1.2",
"protractor": "3.3.0",
"ts-node": "0.7.3",
"tslint": "3.11.0",
"typescript": "1.8.10",
"typings": "0.8.1"
Opened https://github.com/angular/universal/issues/445 to see if this is something that can be fixed on the angular-universal side or not.
This also happen to me with ng serve
for a new project on ubuntu 14.04:
angular-cli: 1.0.0-beta.6
node: 6.2.1
os: linux x64
@Splaktar suggestion for downgrading "angular2-universal" to "0.100.5" seems to make it work.
This is also being tracked here: https://github.com/angular/angular-cli/issues/958
OS X El Capitan
ng --version
.Created with
beta.5
CLI with --mobile and then upgraded withng init --mobile
forbeta.6
. Only changes were to merge my existing app back into the files overwritten by the CLI.Also able to reproduce this in a brand new beta.6 project by doing:
Unfortunately there is no error output at all.
Contents of
dist/index.html
:ng build --prod
on a new project seems to give an error that might be helpful: