Skip to content

When serving es5 ngx-socket-io gives me error #18284

@JSmithOner

Description

@JSmithOner

🐞 bug report

Is this a regression?

From what I remember it didn't worked with angular 9 either

Description

.

I'm using an old IPad 2 for development and just upgraded to angular 10. I'm using ngx-socket-io but I'm trying to build the project using es5. I followed the guideline for building es5 from here

I notice that angular is using even in es5 the bundle fesm2015 of ngx-socket-io causing this unknown error.
When running ng serve it says compiling ngx-socket-io : es2015 as esm2015
I needed to use old safari in order to get the debugger working, so finding the precise error is kind of painful.
notice that basic app using ng new projectName is working on my ipad.

I use this command ng serve --aot --configuration es5 --host 192.168.XX.XX

this is my first GitHub Bug report please let me know if I'm doing wrong or at the wrong place

Thanks in advance

🔬 Minimal Reproduction

I wasn't able to reproduce it on stackBlitz but basically you only have to install ngx-socket-io import it on your new project and make ng serve with host value for safari 9
-->

🔥 Exception or Error

Capture d’écran 2020-07-17 à 13 28 30

🌍 Your Environment

Angular Version:




Safari 9
IOS 9.3.5
Angular 10.0.3

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions