ngx-socket-io icon indicating copy to clipboard operation
ngx-socket-io copied to clipboard

Error: getInternalNameOfClass() called on a non-ES5

Open alexisperezglez opened this issue 4 years ago • 3 comments

I got this error on ng build --prod with angular v9.1.11

image

alexisperezglez avatar Apr 29 '21 18:04 alexisperezglez

Big error message so maybe I missed it (post it as text please), but how does this relate to this package? It's also possible that for Angular 9 you'll require a lower ngx-socket-io package

Helveg avatar Apr 30 '21 07:04 Helveg

Hey @alexisperezglez,

For what it's worth, the error originates from the following code within Angular's compiler CLI: https://github.com/angular/angular/blob/9.0.x/packages/compiler-cli/ngcc/src/host/esm5_host.ts#L85. You may get some additional insight by poking around there.

You may also want to share:

  • Your package JSON file (or at least the version of ngx-socket-io that you're using).
  • A code snippet that illustrates how you're importing and configuring the SocketIoModule.
  • Any notes on whether you're encountering this during local development or only when you're building the application bundles?

jrmykolyn avatar Jun 07 '21 00:06 jrmykolyn