-
-
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
[Angular 18] ngx-cookie-service-ssr
get
returns empty string even if cookie is available
#326
Comments
Hello 👋 @apappas1129 |
Upgrading to v19 pre-release solved the issue. ATTOW, |
Thanks for the feedback. Unfortunately, I'm not sure there's a path forward for fixing While I'd say this is somewhat intended behavior, it's definitely a little misleading. I'm happy to hear NG19's default architect configuration fixes this though. |
Closing as per this |
Still need to push an update to the documentation to write a disclaimer that Angular 18 is not fully supported. |
Describe the bug
It seems that this service inherits the same issue reported here where Angular 18's
ng serve
is not usingserver.ts
which means that adding the providers{ provide: SSR_REQUEST, useValue: req }
and{ provide: 'RESPONSE', useValue: res }
won't serve its purpose.I tried building and serving the
dist/<project>/server/server.mjs
and it did get the existing cookie successfully.Steps to Reproduce
ng serve
and test.get
method (make sure cookie exists)Expected behaviour
What version of the library you see this issue?
"ngx-cookie-service-ssr": "^18.0.0"
What version of Angular are you using?
Angular 18
Screenshots
No response
Desktop? Please complete the following information
No response
Mobile? Please complete the following information
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: