Removed block-level CSS causes "Resource Not Versioned" warning

Good day to you guys!

I have a core widget module being consumed by my end-user module. As I was designing the UI of the widgets I use the CSS part of the block I am tweaking. Now, after getting the right feel that I want I move it in the themes module. The problem happened when I forgot to clear up the CSS definitions in my block before publishing, and as I cleaned it up afterwards the end-user module shows a warning upon the next publish:

Resource Not Versioned

The resource '/XX_Block/css/XX_Block.XX.XXX.css' of the producer module 'XX_Block' was not found in the application cache. Please republish 'XX_Block' to prevent runtime errors.

The warning disappears if I just write something in the CSS part of the block, but the intention was to clear it up in the first place so it is not the solution I wanted.

I tried republishing and redeploying the modules but the warning persist.

Does anyone encountered and resolved this issue before?

Thanks in advance!

Did any solution come from this?



I found two ways to solve this:

* Add some meaningless css in the webblock like .a{}.


* Change the name of your webblock.




I actually forgot I raised this here... I was able to resolve it back then, but I also don't remember the solution I did.

Renaming it does do the trick as well or you can try copy-paste method and delete the former block.

I will mark Gustavo's just because I don't remember, but I believe that would work. (Also don't wanna be one of those that mark their own answers as solution)


- Emman