1

I have compiled the project into the dist folder and want to launch the site from an html file. When using the server locale, everything works, but when you run html, an error is issued and the page does not load. What is the problem?

Uncaught DOMException: Failed to execute 'replaceState' on 'History': 
A history state object with URL 'file:///C:/404' cannot be created in a document with origin 'null' and URL
  • 1
    does https://stackoverflow.com/questions/63115145/domexception-failed-to-execute-replacestate-on-history-a-history-state-obj solve your problem? – Georgy Dec 09 '21 at 11:40

1 Answers1

0

Everything is fine, I replaced Browser Router with HashRouter