muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 231 forks source link

Issue : style compilation failed when creating a new website #124

Closed Fadouchi closed 4 years ago

Fadouchi commented 5 years ago

Hello MUK Team,

Recently, I tried to create a new website for a multi company Odoo instance with multi websites. But when the website was created I got the following error

The style compilation failed, see the error below. Your recent actions may be the cause, please try reverting the changes you made.

Screenshot_107

Could not get content for /muk_web_theme/static/src/scss/colors.custom.muk_web_theme._assets_primary_variables.scss defined in bundle 'web.assets_common'.

I tried to uninstall the MuK Backend Theme module, and the problem was solved !

Odoo V. : 12.0-20190424 CE Platform : Docker

Fadouchi commented 4 years ago

Hello,

It's been 10 days since I've opened this ticket ... is there any solution to this issues or I need to wait more ?

keshrath commented 4 years ago

I am not able to reproduce this behavior on our demo. Even with multi company and multiple website the css loads just fine. What steps are necessary to get this error?

Tickets to our open source apps are processed with our best effort. But keep in mind that you use our open source apps for free and it won't help anyone if you get upset when it takes longer to process a ticket.

Fadouchi commented 4 years ago

I am not upset ... at all ! I just want a follow-up if I could help you. Thank you for your feedback.

Is there any harm if I uninstall and re-install again this module to check if the problem still present ?

keshrath commented 4 years ago

In general you should be able to install or uninstall all modules. Of course you may lose data when uninstalling.

alorence commented 4 years ago

@Fadouchi I had the same issue last days. I always had an error Could not get content for /muk_web_theme/static/src/scss/XXX.scss defined in bundle 'some.bundle'. I finally found myself that the method I used to setup addons in my docker environment was incorrect. I performed a simple ansible copy when I should have used the synchronize module, to use rsync.

As a result, addon dirs were missing some files (some static files were renamed or deleted in last releases : bfd670fed or fe18f6c95) and the scss generation failed. After cleaning everything and re-copied the whole addons directory, everything worked fine. Then I updated my ansible scripts to make sure a deep copy is performed when the addons are installed.

Hope this will help