Open niraj-khatiwada opened 6 days ago
Can you please provide a error specific link?
This happens on the homepage at https://www.farmfe.org/, when the browser doesn't support (or allow) WebGL. Looking at it from a different browser I can see you have some sort of canvas overlay for the content, which is otherwise rendered from HTML.
Yes, the background of the homepage uses canvas. You may need to think about how to solve this problem.
Sorry, but I'm not willing to contribute, atm. My guess is that you could put an error boundary closer to the source of the problem, and ignore any error — so that browsers without WebGL support have a normal white background (or a similar CSS gradient background).
But a better solution might be to use CSS to achieve a similar gradient background, without any need for WebGL. As for the snow dots... There may be a way to have them, too, although they won't be random.
oh I'm very sorry. I wrote my last reply wrong. I should have meant me instead of you,Your suggestion is very good I will take it and I also found some other way to replace it, again sorry
Sorry, but I'm not willing to contribute, atm. My guess is that you could put an error boundary closer to the source of the problem, and ignore any error — so that browsers without WebGL support have a normal white background (or a similar CSS gradient background).
But a better solution might be to use CSS to achieve a similar gradient background, without any need for WebGL. As for the snow dots... There may be a way to have them, too, although they won't be random.
No problem! Nothing wrong with your reply either way.
Steps to reproduce
Reproduce link
No response
What is actually happening?
Homepage is crashing saying "Error creating WebGL context."
System Info