Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

Issue with Universal Support and CookieBackendServiceΒ #48

@Loni2Shoes

Description

@Loni2Shoes

I am tying to add this library to a universal-enabled project, using the Universal Support instructions.

The two module-level import statements suggested for use are:

import { CookieService } from 'angular2-cookie/services/cookies.service';
import { CookieBackendService } from 'angular2-cookie/services/cookies.backend.service';

with providers supplied in the following way:

providers: [
    {
      provide: CookieService,
      useClass: CookieBackendService
    }

However, this results in the following error:

Exception: Call to Node module failed with error: TypeError: Cannot read property 'headers' of undefined at CookieBackendService.get [as cookieString]

Is there anything else that I need to configure to get his working with Universal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions