Pixi.js project has two canvases on reload
Summary During development of a Pixi.js-based game using Vite, refreshing the page results in two canvases being appended to the DOM instead of one. This issue does not occur in production builds but causes visual glitches, altered physics, and doubled game speed during development. Root Cause The issue stems from Vite’s hot module replacement (HMR) … Read more