Imprt Project leads to MIME-Typ-conflict
When I would like to import a project over the cospand config site, I get a browser error message. The problem is a MIME type conflict, but I can´t find any working solution or behavior in the Nextcloud Project or Forum with my Docker setup.
Reproduce:
- open cospand app
- open the setting dialog
- push the CSV-Project Import Button
Error description:
When the import start cospand load a script from sever: https://example.nextcloud.de/apps/cospend/js/cospend-node_modules_nextcloud_dialogs_dist_chunks_index-D5FJasts_mjs.js?v=8b813e5937312ca1222xxx , Status: 404
Browser exception: Blocked due to a MIME type conflict ('text/html') (X-Content-Type-Options: nosniff).
Uncaught (in promise) ChunkLoadError: Loading chunk node_modules_nextcloud_dialogs_dist_chunks_index-D5FJasts_mjs failed.
(error: https://example.nextcloud.de/apps/cospend/js/cospend-node_modules_nextcloud_dialogs_dist_chunks_index-D5FJasts_mjs.js?v=8b813e5937312ca18f2a)
j jsonp chunk loading:28
e ensure chunk:6
e ensure chunk:5
pick index.mjs:69
ue utils.js:20
onImportClick CospendSettingsDialog.vue:294
VueJS 4
click NcButton.mjs:231
Enviroment 1
- Operating system: Nextclound 30.0.4 (docker apache)
- Proxy: Nginx with non additional config
- cospand version: 3.0.8
Enviroment 2
- Operating system: Nextclound 30.0.4 (docker FPM)
- Proxy: Nginx with non additional config
- cospand version: 3.0.8
Actual behavior: Setup the types not works !!!Not works!!! https://nginx.org/en/docs/http/ngx_http_core_module.html#types
Im open for any further nginx setup Ideas.
I also get this error.
Thanks for reporting this. For some reason the dialogs lib (used to open the file picker) loads some javascript dynamically so there is some webpack-specific variables to define.
This is now fixed and will be included in the next release.
Nice that this is fixed already.
It seems like there is no public version yet, tough. The steps in the readme don't find any newer version than 3.0.8. Is there any other way to install this fix at the moment?
Works for me again in v3.0.11.