frappe / wiki

Free and Open Source Wiki built on top of Frappe
https://frappe.io/wiki
MIT License
226 stars 174 forks source link

Styles issue: Mismatched built/requested file names? #186

Closed littletuna4 closed 11 months ago

littletuna4 commented 11 months ago

As touched on in #185 there seems to be an issue with the wiki styles that I can't seem to identify the cause of. The application works, but, is unusable due to the faulty styles as pictured below.

image

The only indication of a possible cause that I can identify is these postcss warnings which occurs during the app build & possibly that the built css bundle seems to have a different name to that of the one requested (and subsequently not found, by the front end):

Build Console output (css only):

frappe/dist/css/
├─ desk.bundle.BIOIV4OC.css                                 565.66 Kb
├─ email.bundle.DFGVNHJ3.css                                4.02 Kb
├─ login.bundle.TURS2O5R.css                                27.85 Kb
├─ print.bundle.MN4ZYF4S.css                                196.50 Kb
├─ print_format.bundle.Q4MYD35Z.css                         179.01 Kb
├─ report.bundle.2F5JOBCY.css                               5.36 Kb
├─ web_form.bundle.WMTIHIFS.css                             14.73 Kb
└─ website.bundle.KM7DW4YY.css                              424.29 Kb

erpnext/dist/css/
├─ erpnext-web.bundle.ZJLFIRI6.css                          25.63 Kb
├─ erpnext.bundle.NB2JM6JO.css                              45.29 Kb
└─ erpnext_email.bundle.6TG6UH5C.css                        0.56 Kb

wiki/dist/css/
├─ contributions.bundle.YNDK7CZU.css                        0.99 Kb
├─ edit_wiki.bundle.VJBIS7X2.css                            17.56 Kb
**└─ wiki.bundle.QN4XDL37.css                                 45.38 Kb**

frappe/dist/css-rtl/
├─ desk.bundle.AGJOPE4C.css                                 565.93 Kb
├─ email.bundle.CLX4MQXP.css                                4.02 Kb
├─ login.bundle.U3JVIMJA.css                                27.84 Kb
├─ print.bundle.AQP3EMJ7.css                                196.65 Kb
├─ print_format.bundle.LEYB2RWU.css                         179.13 Kb
├─ report.bundle.KQOFFAX3.css                               5.35 Kb
├─ web_form.bundle.2WDFPTKG.css                             14.72 Kb
└─ website.bundle.V4BN7VQO.css                              424.44 Kb

erpnext/dist/css-rtl/
├─ erpnext-web.bundle.CXQPDTTS.css                          25.62 Kb
├─ erpnext.bundle.T2ENIFZV.css                              45.28 Kb
└─ erpnext_email.bundle.BERJLM5A.css                        0.56 Kb

wiki/dist/css-rtl/
├─ contributions.bundle.FKEXLT5X.css                        0.99 Kb
├─ edit_wiki.bundle.T5DN47SO.css                            17.56 Kb
**└─ wiki.bundle.Q6YWBFSK.css                                 45.39 Kb**

 DONE  Total Build Time: 9.209s

Front end console: image

Any help would be much appreciated.

BreadGenie commented 11 months ago

can you try running bench setup requirements --node and then bench build --app wiki?

littletuna4 commented 11 months ago

Thankyou for your help @BreadGenie, the answer was hidden in frappe/frappe_docker's wiki.

Apps cannot be installed to frappe_docker instances from inside the containers using bench, as briefly explained here https://github.com/frappe/frappe_docker/wiki/Frequently-Asked-Questions