Rainbow-CPaaS / StarterKit-SDKWeb-Angular2

Starter Kit for the ALE Rainbow SDK for Web based on Angular 2+ environment
2 stars 2 forks source link

Can't use RainbowSDK with Angular 14 #34

Open leolade opened 1 year ago

leolade commented 1 year ago

After updating this simple project with Angular 14, the SDK doesn't start.

Context

I'm planning to use Rainbow on an Enterprise project. The project run on Angular 14. I'm facing an issue that prevents starting my Angular application. So, I decided to test the SDK with minimal configuration, and I take this repo as an example.

Steps

  1. I simply update some dependencies to migrate Angular.
"dependencies": {
    "@angular/animations": "^14.2.0",
    "@angular/common": "^14.2.0",
    "@angular/compiler": "^14.2.0",
    "@angular/core": "^14.2.0",
    "@angular/forms": "^14.2.0",
    "@angular/platform-browser": "^14.2.0",
    "@angular/platform-browser-dynamic": "^14.2.0",
    "@angular/router": "^14.2.0",
    ......
},
"devDependencies": {
    "@angular-devkit/build-angular": "~14.2.0",
    "@angular/cli": "^14.2.0",
    "@angular/compiler-cli": "^14.2.0",
    "@angular/language-service": "^14.2.0",
    ......,
    "typescript": "~4.8.4"
}
  1. Run npm i

  2. Run ng serve

The build goes well, but at run time you have an error image