Angular 2 - Uncaught (in Promise): Securityerror: Failed to execute 'replaceState' on 'History'

Asked

Viewed 17 times

1

Does anyone know how to solve or direct this error when Gero a build with Angular ?

Angular version information used:

Angular CLI: 1.7.4
Node: 10.15.0
OS: win32 x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cdk: 5.2.4
@angular/cli: 1.7.4
@angular/material: 5.2.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.4.2
webpack: 3.11.0

Error print when using command ng build

Erro Screen

  • The problem was occurring because the already built application is being tested offline. When the upload to the Amazon server was performed, the application started working. I’m not sure that’s the solution, but it worked here.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.