Error Integrating Adnoisjs websocket Client API with angular7


#1

I am trying to integrate webscoket client API in angular 7. I have run & installed all the commands mentioned in official documentation. Babel installed version is 7.0.1.
But when I run the code I get Uncaught ReferenceError: regeneratorRuntime is not defined.

This was working with Angular version 5.

Any help will be appreciable.


regeneratorRuntime is not defined (Angular 6)
regeneratorRuntime is not defined
#2

Read Adonis web socket client and vue js 3


#3

I’m still having this problem and can’t get rid of regeneratorRuntime error !!


#4

I did these two steps:

1- npm install --save @babel/polyfill

2- in app/polyfills.js

import “babel-polyfill/dist/polyfill.min.js”

it is actually working but I’m not sure if there are side effects on my angular 7 project.