odydemeton
odydemeton
SSolidJS
Created by odydemeton on 6/29/2023 in #support
Router Error when on a server with lazy loaded component on root page
When I deploy my website on a webserver and I load the "/" route I get an error in the browser console saying: "Make sure your app is wrapped in a <Router />". I get this message again when I try to navigate to another route. But I only get the error when loading the root page first. When loading a different route first and navigating to the root page everything works. Also I only get the error on my server not when testing locally and I can put in a Component from a different Page and it still doesn't work. My work around is not lazy loading the Component for the root page which works but increases the size of the index.js on every page.
13 replies