I’m trying to build pre-registration-ui from branch sdec-1.2.0.1. but getting following error.
everything works if I remove pdfjs-dist dependent code parts from source.
I’m using workflow prereg-ui-build-manual.yml
Steps:
- Fork GitHub - SLUDI-Pilot/pre-registration-ui to new repo
- Run action prereg-ui-build-manual.yml
Result:
2026-01-16T07:28:11.2063026Z > pre-registration@1.1.4 build /home/runner/work/pre-registration-ui-new/pre-registration-ui-new/pre-registration-ui
2026-01-16T07:28:11.2064363Z > ng build "--prod" "--base-href" "." "--output-path=dist"
2026-01-16T07:28:11.2064786Z
2026-01-16T07:28:18.6654221Z
2026-01-16T07:28:18.6658846Z Date: 2026-01-16T07:28:18.664Z
2026-01-16T07:28:18.6659985Z
2026-01-16T07:28:18.6663494Z ERROR in : Unexpected value 'NgxPrintModule in /home/runner/work/pre-registration-ui-new/pre-registration-ui-new/pre-registration-ui/node_modules/ngx-print/lib/ngx-print.module.d.ts' imported by the module 'AppModule in /home/runner/work/pre-registration-ui-new/pre-registration-ui-new/pre-registration-ui/src/app/app.module.ts'. Please add a @NgModule annotation.
2026-01-16T07:28:18.6711742Z ##[error]node_modules/pdfjs-dist/types/src/display/annotation_storage.d.ts(66,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6722269Z ##[error]node_modules/pdfjs-dist/types/src/display/annotation_storage.d.ts(80,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6724543Z ##[error]node_modules/pdfjs-dist/types/src/display/api.d.ts(1410,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6726596Z ##[error]node_modules/pdfjs-dist/types/src/display/api.d.ts(1466,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6728831Z ##[error]node_modules/pdfjs-dist/types/src/display/editor/annotation_editor_layer.d.ts(190,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6731561Z ##[error]node_modules/pdfjs-dist/types/src/display/editor/editor.d.ts(225,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6733711Z ##[error]node_modules/pdfjs-dist/types/src/display/editor/tools.d.ts(173,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6735848Z ##[error]node_modules/pdfjs-dist/types/src/display/editor/tools.d.ts(245,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6738007Z ##[error]node_modules/pdfjs-dist/types/src/display/editor/tools.d.ts(271,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6740366Z ##[error]node_modules/pdfjs-dist/types/src/display/metadata.d.ts(10,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6742674Z ##[error]node_modules/pdfjs-dist/types/src/display/optional_content_config.d.ts(11,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6745049Z ##[error]node_modules/pdfjs-dist/types/web/annotation_editor_layer_builder.d.ts(55,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6747351Z ##[error]node_modules/pdfjs-dist/types/web/pdf_find_controller.d.ts(83,5): error TS1127: Invalid character.
2026-01-16T07:28:18.6749935Z ##[error]node_modules/pdfjs-dist/types/web/text_accessibility.d.ts(41,5): error TS1127: Invalid character.
