From 3d69832cfccb1d579dae028bba75e1f1f5162a7e Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 9 Nov 2023 22:17:40 +0800 Subject: [PATCH] chore: fix build site --- scripts/site/route-paths.txt | 2 ++ src/app/app.module.ts | 5 +++-- src/server.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/site/route-paths.txt b/scripts/site/route-paths.txt index cf57abb3e..b0c862c7e 100644 --- a/scripts/site/route-paths.txt +++ b/scripts/site/route-paths.txt @@ -241,6 +241,8 @@ /form/rate/zh /form/schema/en /form/schema/zh +/form/segmented/en +/form/segmented/zh /form/select/en /form/select/zh /form/slider/en diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 67073cc71..9f3f28844 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,7 +4,7 @@ import { LayoutModule } from '@angular/cdk/layout'; import { isPlatformBrowser, registerLocaleData } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import localeZh from '@angular/common/locales/zh'; -import { APP_INITIALIZER, ErrorHandler, Inject, Injector, NgModule, PLATFORM_ID } from '@angular/core'; +import { APP_INITIALIZER, ErrorHandler, Inject, Injector, NgModule, PLATFORM_ID, APP_ID } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { createCustomElement } from '@angular/elements'; @@ -61,7 +61,7 @@ function registerElements(injector: Injector, platformId: {}): void { @NgModule({ imports: [ - BrowserModule.withServerTransition({ appId: 'serverApp' }), + BrowserModule, BrowserAnimationsModule, HttpClientModule, BidiModule, @@ -82,6 +82,7 @@ function registerElements(injector: Injector, platformId: {}): void { ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }) ], providers: [ + { provide: APP_ID, useValue: 'serverApp' }, // { // provide: RouteReuseStrategy, // useClass: ReuseTabStrategy, diff --git a/src/server.ts b/src/server.ts index 0d154c0b2..d708ed649 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ // eslint-disable-next-line import/no-unassigned-import -import 'zone.js/dist/zone-node'; +import 'zone.js/bundles/zone-node.umd'; import { APP_BASE_HREF } from '@angular/common'; import { ngExpressEngine } from '@nguniversal/express-engine';