Build does not work on edge browser

#1

I try to publish my app using

ionic build --prod --service-worker

all right, except in Ms edge Browser.

Does anyone know what’s going on?

#2

What does “does not work” mean? What error are you getting?

What is your ionic info output for the project?

#3

same here. ionic-v4, index.html not working like v3 in browser after creating build.

#4

ionic info

Ionic:

ionic (Ionic CLI) : 4.0.3 (C:\Users\gelton.cruz\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.0
@angular-devkit/core : 0.7.0-rc.3
@angular-devkit/schematics : 0.7.0-rc.3
@angular/cli : 6.0.8
@ionic/ng-toolkit : 1.0.0
@ionic/schematics-angular : 1.0.1

System:

NodeJS : v10.6.0 (C:\Program Files\nodejs\node.exe)
npm : 6.1.0
OS : Windows 10

#5

You should upgrade to a newer beta,

Also: You should answer the other questions I posted.

#6

Ok! i need learn
how work in v4.?

#7

I had missed version:: my version is @ionic/angular”: "^4.0.0-beta.2"

#8

Hi @Sujan12, sorry for the less details.

The problem is with the HTTP request. When I try to do a GET request I received an console error. See the details:

My .ts code

this.http
      .get<any[]>(this.url) //the return is an array
      .pipe(map(data => data[0]))
      .subscribe(
        value => {
          console.log(value); //this line is not called
        }
      )

Edge Console ERROR on start of the application:

[object Object]: {error: Object, headers: Object, message: "Http failure response for (unknown url): 0 Unknown Error", name: "HttpErrorResponse", ok: false...}

error: Object

headers: Object
message: "Http failure response for (unknown url): 0 Unknown Error"
name: "HttpErrorResponse"
ok: false
status: 0
statusText: "Unknown Error"
url: null

__proto__: Object

But the URL is right because the project ran withou errors on Chrome and Firefox.