Skip to content

This Angular repo was prepared to replicate environment for debugging the issue related to _Symbol$iterator4 is not defined

Notifications You must be signed in to change notification settings

0mar-K/basware-angular-repro

Repository files navigation

Basware Angular Nightly Repro

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.


🔧 What this project uses

  • 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-js v2
  • Integrates the nightly viewer build instead of a stable release

This gives us a controlled baseline that is much closer to Basware’s environment.


🚀 How to run this project

  1. Clone the repo

    git clone https://github.com/0mar-K/basware-angular-repro.git
    cd basware-angular-repro
  2. Install dependencies

    npm install
  3. Start the dev server

    npm start
  4. Open:

    http://localhost:4200
    

You should see the Angular app with the Nutrient viewer loaded using the nightly build.


🧪 How to use this to reproduce your issue

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.

About

This Angular repo was prepared to replicate environment for debugging the issue related to _Symbol$iterator4 is not defined

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published