ChrisThornham
Stuck On A Build Error
I solved it.
I was importing the SupabaseAuthContext outside of a component. 🤦♂️
That took about 7 hours to solve.
It would be helpful if the error referenced the file causing the problem. It may be something to consider for the DX team.
Thanks @Madaxen86 and @Tommypop for helping me narrow down this error.
28 replies
Stuck On A Build Error
Well, if I'm being fully honest, I'm not even totally sure what nitro-prerender means.
I think it means, pre-render what you can on the server.
This is a purely client-side application that is using SolidStart and Capacitor JS for mobile apps.
So, technically, nothing needs to happen on the server.
If I can just turn
nitro-prerender
off, that would be fine.28 replies
Help Me Stop Theme Flashing In SolidStart
The
lightTheme
and darkTheme
values imported from my config file are just the DaisyUI theme strings like:
Finally, I use the Theme Context Provider like this:
Because isDarkMode()
is coming from a Context provider, your app should have the value before the page loads meaning you'll see the correct colors or icons when the page loads.
I hope that helps,
Chris23 replies
Error when evaluating SSR module EVEN WITH ssr: false
If anyone runs into a similar issue in the future, here's the fix.
When working with RevenueCat, you have to initialize the service once, preferably at a "high" level in the app. I chose to initialize the service in
app.tsx
.
However, context files cannot access RevenueCat when you initialize the service in app.tsx
.
Moving any required RevenueCat code inside of a route fixed the problem.
I don't know why this happens; it likely has something to do with timing, but this is the solution.2 replies