-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module has no exported member REQUEST. Is the documentation outdated for SSR? #345
Comments
Hello 👋 @AhsanAyaz |
Updated the README.md |
I might be wrong but on this line here you're injecting the type REQUEST from angular/core However, on the readme we're using the string 'REQUEST' instead, which doesnt actually bind to the cookies. So my cookies are actually empty in ssr (because it's looking at the wrong thing) when I use string 'REQUEST' however if I use the type, then it crashes with
I've confirmed that ssr gets the cookies by printing
and I'm at the same time on my AuthGuard printing .getAll() from my ngx-cookies-ssr service which returns empty
Is it possible there's a bug here or am I setting this up incorrectly. The way on the readme def doesnt work for me, and if I go by the code then I get a crash on Angular 19. This wasnt crashing in Angular 18 mind you |
Could you share a stack blitz example? |
Describe the bug
The Readme says that we should import this:
However, it throws the error:
Steps to Reproduce
Install the latest package, paste the line in server.ts:
Please provide a link to a minimal reproduction of the bug. StackBlitz, CodePen or CodeSanBox
Expected behaviour
I would assume the library exports
REQUEST
.If not, the documentation probably needs to be updated.
What version of the library you see this issue?
19.1.2
What version of Angular are you using?
Angular 19
Screenshots
No response
Desktop? Please complete the following information
Mac OS Sonoma
Mobile? Please complete the following information
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: