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

httpservice call did not display in view-source . #568

Closed
percinor opened this issue Oct 1, 2016 · 8 comments
Closed

httpservice call did not display in view-source . #568

percinor opened this issue Oct 1, 2016 · 8 comments

Comments

@percinor
Copy link

percinor commented Oct 1, 2016

when i use httpservice grab data from localhost ,the web page success and display well in tag ul list table.use ngfor,
1
but these content data did not display in html view-source , did universal rendering table in html work error?
3

@MarkPieszak
Copy link
Contributor

Try upgrading Zone.js dependency in your package json to 0.6.23 instead of 21.
That should do the trick for now.

@MarkPieszak
Copy link
Contributor

This is something on the Zone side that needs to be fixed, because 23 can potentially cause other issues, but let us know if anything else comes up!

@PatrickJS
Copy link
Contributor

can you try zone version 0.6.25 which should be tracking http now

@percinor
Copy link
Author

percinor commented Oct 2, 2016

i update zonejs to 23 or 25, if httpservice call web json file ,it work very well .but if i modify src/server.ts to connect localhost mysql on express , in zonejs 23 ,25 condition , could not start / but in zonejs21 condition ,web page could display ok but viewsource have no data,

in zonejs23,25 error message

[nodemon] starting node dist/server/index.js
D:\mediflip\an2un\universal-starter\node_modules\mysql\lib\protocol\Protocol.js:
152
.on('packet', function(packet) { ^

TypeError: Cannot read property 'on' of undefined
at Protocol._enqueue (D:\mediflip\an2un\universal-starter\node_modules\mysql
\lib\protocol\Protocol.js:152:5)
at Protocol.handshake (D:\mediflip\an2un\universal-starter\node_modules\mysq
l\lib\protocol\Protocol.js:52:41)
at Connection.connect (D:\mediflip\an2un\universal-starter\node_modules\mysq
l\lib\Connection.js:136:18)
at Object. (D:\mediflip\an2un\universal-starter\dist\server\index
.js:433:12)
at Object. (D:\mediflip\an2un\universal-starter\dist\server\index
.js:463:30)
at webpack_require (D:\mediflip\an2un\universal-starter\dist\server\inde
x.js:21:30)
at D:\mediflip\an2un\universal-starter\dist\server\index.js:65:18
at Object. (D:\mediflip\an2un\universal-starter\dist\server\index
.js:68:10)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
[nodemon] app crashed - waiting for file changes before starting...

@PatrickJS
Copy link
Contributor

@percinor can you create an issue in the angular/zone.js repo

@Reuvenc
Copy link

Reuvenc commented Oct 3, 2016

@percinor There's already a PR which solves the issue you encountered.

@percinor
Copy link
Author

percinor commented Oct 4, 2016

@Reuvenc i already modified util.ts and events.ts like #475, but how to build js file to zone dist package ,it didn't like angular2 just run npm start or run tsc to build. tks .

@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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants