Skip to main content
Question

Error occurred when using Vite

  • August 20, 2022
  • 1 reply
  • 555 views

Bahtiyar_Ahmidi

We know Vite is a blazing fast build tool, but when I host my frontend in localhost using Vite, and redirect my plugin UI to localhost changing window.location.href, the following error occurred:


There’s no error when I open the same page in the browser.

Any idea why this happened and how to fix this?

Bahtiyar_Ahmidi

Turns out, deleting the node_modules and reinstalling them fixed the problem.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings