Skip to content

New @angular/ssr is missing REQUEST and RESPONSE tokens #26110

Closed

Description

@sonallux

Which @angular/* package(s) are the source of the bug?

platform-server, Don't known / other

Is this a regression?

No

Description

Angular Universal exposed two injection tokens REQUEST and RESPONSE from @nguniversal/express-engine/tokens. Also mentioned here in the ngExpressEngine documentation. `

Unfortunately the new SSR solution with @angular/ssr does not expose these anymore. Can you add them back or how should I handle use cases where I need access to the raw request object to read headers and/or cookies?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.0.0-rc.0
Node: 18.17.1
Package Manager: npm 9.6.7
OS: win32 x64

Angular: 17.0.0-rc.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1700.0-rc.0
@angular-devkit/build-angular   17.0.0-rc.0
@angular-devkit/core            17.0.0-rc.0
@angular-devkit/schematics      17.0.0-rc.0
@schematics/angular             17.0.0-rc.0
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.0

Anything else?

No response

Activity

  1. added
    freq1: low
    on Oct 24, 2023
  2. added this to the v17 milestone on Oct 26, 2023
  3. self-assigned this
    on Oct 30, 2023
  4. added a commit that references this issue on Oct 30, 2023
    05676de
  5. added 2 commits that reference this issue on Oct 31, 2023
    65e5331
    eb0fc74
  6. angular-automatic-lock-bot commented on Dec 1, 2023

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: @schematics/angularfreq1: lowtype: bug/fix

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions