This repository contains a minimal Angular 16 project prepared to help reproduce and debug the issue Basware reported with the Web SDK nightly build (for example _Symbol$iterator4 is not defined).
It is based on the official Nutrient Angular example, but adjusted to more closely match Basware’s setup.
- Angular: 16.1.9
- Angular CLI: 16.1.8
- TypeScript: 5.1.6
- Viewer:
@nutrient-sdk/viewer@1.10.0-nightly.20251121 - Polyfills: core-js v2 imports defined in
src/polyfills.ts
Compared to the stock Angular example, this repo:
- Downgrades Angular from 21.x to 16.1.9
- Downgrades TypeScript from 5.9.x to 5.1.6
- Adds explicit polyfills for Symbols / iterators via
core-jsv2 - Integrates the nightly viewer build instead of a stable release
This gives us a controlled baseline that is much closer to Basware’s environment.
-
Clone the repo
git clone https://github.com/0mar-K/basware-angular-repro.git cd basware-angular-repro -
Install dependencies
npm install
-
Start the dev server
npm start
-
Open:
http://localhost:4200
You should see the Angular app with the Nutrient viewer loaded using the nightly build.
Please apply your own project’s build configuration to this repo step by step, for example:
- Add or change your polyfills
- Adjust
tsconfig.json/tsconfig.app.json(target, module, etc.) - Apply your Browserslist settings
- Add any extra bundler / webpack tweaks
- Add the same event listeners and integration logic you use in your app
Stop as soon as your original error appears and share that minimal modified version back with us. That will let us debug the exact environment that causes the nightly to fail, instead of guessing.