FrozenPandaz / ng-universal-demo

171 stars 54 forks source link

How to make HTTP calls on the server-side inside a lazy loaded module #31

Closed crebuh closed 7 years ago

crebuh commented 7 years ago

Hi! I used this repo as boilerplate for a new project.

At the moment I'm having an issue with making HTTP Calls on the server side, inside a lazy loaded module.

When I'm fetching data on the server side I got this error message:

ERROR { Error: not implemented
    at new Error (native)
    at Parse5DomAdapter.getCookie (/home/chuber/Projects/my-app/bin/server.js:35103:68) [angular]
    at CookieXSRFStrategy.configureRequest (/home/chuber/Projects/my-app/bin/server.js:32568:142) [angular]
    at XHRBackend.createConnection (/home/chuber/Projects/my-app/bin/server.js:32617:28) [angular]
    at httpRequest (/home/chuber/Projects/my-app/bin/server.js:33025:20) [angular]
    at Http.request (/home/chuber/Projects/my-app/bin/server.js:33135:34) [angular]
    at Http.get (/home/chuber/Projects/my-app/bin/server.js:33149:21) [angular]
    at TrailsService.exports.modules.550.TrailsService.fetch (/home/chuber/Projects/my-app/bin/0.server.js:142:19) [angular]
    at TrailsPage.exports.modules.551.TrailsPage.ngOnInit (/home/chuber/Projects/my-app/bin/0.server.js:217:32) [angular]
    at checkAndUpdateDirectiveInline (/home/chuber/Projects/my-app/bin/server.js:11671:19) [angular]
    at checkAndUpdateNodeInline (/home/chuber/Projects/my-app/bin/server.js:13167:17) [angular]
    at checkAndUpdateNode (/home/chuber/Projects/my-app/bin/server.js:13106:16) [angular]
    at prodCheckAndUpdateNode (/home/chuber/Projects/my-app/bin/server.js:13800:5) [angular]
    at Object.eval [as updateDirectives] (ng:///TrailsModule/TrailsPage_Host.ngfactory.js:9:9) [angular]

Any idea how to solve this?