Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Angular 2 Universal production ready #247

Closed
25 of 35 tasks
PatrickJS opened this issue Feb 3, 2016 · 6 comments
Closed
25 of 35 tasks

Angular 2 Universal production ready #247

PatrickJS opened this issue Feb 3, 2016 · 6 comments

Comments

@PatrickJS
Copy link
Contributor

PatrickJS commented Feb 3, 2016

bonus:

@robwormald
Copy link

worth considering starting to use npm scoped packages here:
@angular2/universal

@PatrickJS
Copy link
Contributor Author

yup, that would be legit. I advocated @angular/universal in the past but the angular2 namespace works too. Although, the reason why angular2 was used rather than angular@2 was due to being able to run both versions of angular in the same app

@PatrickJS PatrickJS changed the title remove '-preview' namespace from angular2-universal-preview module production ready Apr 4, 2016
@PatrickJS PatrickJS changed the title production ready Angular 2 Universal production ready Apr 4, 2016
@wizardnet972
Copy link

wizardnet972 commented Aug 5, 2017

@gdi2290 @robwormald
Yeah? how? I'm getting an error message on the build to production: (when I try to run the example node app - minimal universal)

I'm running npm build:aot
Then: cd dist
run: node server.js
go to: http://localhost:8000

I get error message:
Error: Failed to lookup view "../dist/index" in views directory "src"

Try for yourself!

@Koslun
Copy link

Koslun commented Aug 9, 2017

@wizardnet972 if the starter doesn't work straight out-of-the-box you should rather put that issue on the repository for that starter.

If you have some other custom configuration it might be better to turn it over to stackoverflow.

Regardless the main universal logic is now merged into the angular core repository and this repository only contains the old logic for angular 2.X and some wrapper modules to more easily use what's in the core of angular.

@MarkPieszak
Copy link
Contributor

@wizardnet972 which starter are you using? The angular/universal-starter has been updated can you try that one and see if everything works for you?

@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 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants