Skip to content

Commit

Permalink
fix(@angular/ssr): export PrerenderFallback
Browse files Browse the repository at this point in the history
Importing `PrerenderFallback` in a project throws at build time in 19.0.0-rc.2 with:

```ts
✘ [ERROR] No matching export in "node_modules/@angular/ssr/fesm2022/ssr.mjs" for import "PrerenderFallback"

    src/app/app.routes.server.ts:1:9:
      1 │ import { PrerenderFallback, RenderMode, ServerRoute } from '@AnGula...
```

This exports `PrerenderFallback` the same way `RenderMode` is exported to fix the issue.

(cherry picked from commit d77527d)
  • Loading branch information
cexbrayat authored and jkrems committed Nov 15, 2024
1 parent d53c502 commit 4ecf63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/ssr/public_api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export { AngularAppEngine } from './src/app-engine';
export { createRequestHandler, type RequestHandlerFunction } from './src/handler';

export {
type PrerenderFallback,
PrerenderFallback,
type ServerRoute,
type ServerRoutesConfigOptions,
provideServerRoutesConfig,
Expand Down

0 comments on commit 4ecf63a

Please sign in to comment.