-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue
Description
Which @angular/* package(s) are the source of the bug?
platform-server
Is this a regression?
Yes
Description
I get Cannot GET / when I run the application on first install and start.
ng new test
- Which stylesheet format would you like to use? Sass (SCSS)
- Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? yes
- Would you like to use the Server Routing and App Engine APIs (Developer Preview) for this server application? yes
npm start
npm run build
npm serve:ssr:test
From what I can see in the following code, response
is null.
app.use('/**', (req, res, next) => {
angularApp
.handle(req)
.then((response) =>
response ? writeResponseToNodeResponse(response, res) : next(),
)
.catch(next);
});
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Cannot GET /
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 19.0.0
Node: 23.1.0 (Unsupported)
Package Manager: npm 10.9.0
OS: win32 x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1900.0 (cli-only)
@angular-devkit/core 19.0.0 (cli-only)
@angular-devkit/schematics 19.0.0 (cli-only)
@schematics/angular 19.0.0 (cli-only)
Anything else?
No response
Metadata
Metadata
Assignees
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue