-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search component missing from PROD environment #253
Comments
Console is throwing errors: I am getting this exact same error on another component I wrote and trying to narrow down the exact moment where this happens I have had to remove most of the code and, strangely the below code gets the error: <script lang="ts">
const test = "Test";
</script>
<div>
<div>{test}</div>
<div>{test}</div>
<div>{test}</div>
</div> but removing one of the div inside removes the error... <script lang="ts">
const test = "Test";
</script>
<div>
<div>{test}</div>
<div>{test}</div>
</div> The component is simply being called like <StackedBar client:load/> Finally, I resolved the issue by refactoring the 3 div into only 1, but this doesn't make any sense to me, maybe after updating to Svelte 5 one of the dependencies has a bug. For the search component for now I am using client:only="svelte" as a workaround as I didn't have enough time to fix it, but it seems that Svelte 5 doesn't like that you have separate root html elements in a component. If you place the search-panel div inside the div of the search-bar div that fixes the issue for desktop and the search bar is shown again (tho it doesn't work on mobile as the bar is not shown upon clicking the search icon, but knowing this is a good starting point). |
Related to saicaca#253
The search component is not appearing in PROD environment, whereas it does appear in DEV environment.
The text was updated successfully, but these errors were encountered: