What I’m trying to do:
Hello. I am trying to style the border around some components (namely a data grid and flow panel) using CSS. However, doing so causes the anvil UI editor to no longer load in the forms. Attached is a screenshot showcasing what the anvil UI editor looks like. (Notice: form is completely blank). This happens to every form in my project.
The only fix I’ve found is to clone the app and create a new one. This is an inconvenience as it occurs constantly and is preventing me from styling my app the way I’ve designed it to look. Along with requiring me to generate a new uplink code with each cloning.
Please let me know if anyone has any suggestions. Not sure why this is happening. Must be the way CSS is communicating with the Anvil editor UI? When I run the app everything still appears as it should.
Update: Tested the project out on a different computer and it seems to be working fine now… not sure what was causing the issue on my laptop. Thanks.
If it happens again, see if there are any errors in the browser console.
If you’re messing with native libraries then bad html can cause this to happen.
e.g. if you forget to close a script tag.
But if you’re not doing anything like that then I wouldn’t expect any standard css changes to cause this.
The fact that a cloned app worked is unusual since you should be cloning the same code.
It’s possible that the network was just very slow for some reason and it just hadn’t loaded yet.
Thank you for the suggestions, I will try them out.
best,
If the behavior of the ide is different in different computers, it’s worth clearing the storage for anvil.works.
1 Like
Wanted to provide an update on this topic:
When I clear my storage, I am able to run my Anvil App Project once (Green run button in top right-ish corner). Before the same bug repeats itself. The same thing Happens when I clone my app (can run once, then bug happens).
Here’s a screenshot of my console log using chrome dev tools:
Please note: I am able to do development on my computer so this bug is not a large deal to me… However I am curious about its origins, so any help would be appreciated. 
Final Update: Cleared All cookies, cache, storage etc. (for all websites) and that seemed to have taken care of it.
Best,