Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Some CSS refuses to load, errors in browser console, when using custom_apps folder #2665

Closed
4 of 8 tasks
fulldecent opened this issue Aug 28, 2024 · 3 comments · Fixed by #2667
Closed
4 of 8 tasks

Comments

@fulldecent
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Missing CSS resources

Steps to reproduce

Install these apps

Screenshot 2024-08-28 at 10 14 16

Access the tasks app

Expected behavior

No console errors.

Got this error:

Screenshot 2024-08-28 at 10 02 43

Refused to apply style from ... custom_apps ... because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

However this is actually just an error that that file does not exist.


Related: https://help.nextcloud.com/t/troube-with-custom-app-directory/139536/3

Installation method

Official All-in-One appliance

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@fulldecent fulldecent added the bug label Aug 28, 2024
@solracsf solracsf changed the title [Bug]: [Bug]: Some CSS refuses to load, errors in browser console Aug 28, 2024
@solracsf solracsf changed the title [Bug]: Some CSS refuses to load, errors in browser console [Bug]: Some CSS refuses to load, errors in browser console, when using custom_apps folder Aug 28, 2024
@joshtrichards
Copy link
Member

joshtrichards commented Aug 28, 2024

Reproduced, but this doesn't look to be a server matter. The mime type mismatches are just due to those css resources not being found, so the 404 filler is taking their place (which will havetext/html mime type so it'll violate the security policy since text/css was expected). EDIT: Though I guess there could be an interaction with the apps_path config, but given other apps don't have this problem - as far as I can tell - I find this unlikely.

Just looks like the tasks app might need some clean-up somewhere. I'll move this over there.

@joshtrichards joshtrichards transferred this issue from nextcloud/server Aug 28, 2024
@raimund-schluessler
Copy link
Member

Indeed, vite exported the CSS chunks a little differently now, which means we don't have to include them separately anymore, but only the main chunk. I will create a fix for this.

@fulldecent
Copy link
Author

Cool, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants