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

Picker app doesn't work if nextcloud is installed on subfolder #745

Open
Thatoo opened this issue Nov 5, 2024 · 7 comments
Open

Picker app doesn't work if nextcloud is installed on subfolder #745

Thatoo opened this issue Nov 5, 2024 · 7 comments

Comments

@Thatoo
Copy link
Contributor

Thatoo commented Nov 5, 2024

Describe the bug

Picker app doesn't work if nextcloud is installed on subfolder. I reported my issue in here : nextcloud/picker#51

Context

  • Hardware: Old laptop or compute
  • YunoHost version: both last v11 version and last v12 version
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • Install nextcloud in a subdirectory https://domain.tld/nextcloud
    
  • go to https://domain.tld/nextcloud/index.php/apps/picker/single-link
    
  • Get the following error in console :
    
Uncaught (in promise) ChunkLoadError: Loading chunk node_modules_nextcloud_dialogs_dist_chunks_index-CYiQsZoY_mjs failed.
(error: https://domain.tld/apps/picker/js/picker-node_modules_nextcloud_dialogs_dist_chunks_index-CYiQsZoY_mjs.js?v=c2373e41314815cfcd22)

It obviously can't work as the link doesn't include the subfolder, it should be instead https://domain.tld/nextcloud/apps/picker/js/picker-node_modules_nextcloud_dialogs_dist_chunks_index-CYiQsZoY_mjs.js?v=c2373e41314815cfcd22

Expected behavior

picker should load

Logs

Browser log in console :

Uncaught (in promise) ChunkLoadError: Loading chunk node_modules_nextcloud_dialogs_dist_chunks_index-CYiQsZoY_mjs failed.
(error: https://zyuno.local/apps/picker/js/picker-node_modules_nextcloud_dialogs_dist_chunks_index-CYiQsZoY_mjs.js?v=c2373e41314815cfcd22)
    j jsonp chunk loading:27
    e ensure chunk:6
    e ensure chunk:5
    pick index.mjs:69
    <anonymous> main.js:128
    EventListener.handleEvent* main.js:163
    <anonymous> main.js:173
    <anonymous> main.js:173
[jsonp chunk loading:27:17](webpack:///picker/webpack/runtime/jsonp%20chunk%20loading)
    pick index.mjs:69
    AsyncFunctionThrow self-hosted:804
    (Asynchrone : async)
    <anonyme> main.js:128
    (Asynchrone : EventListener.handleEvent)
    <anonyme> main.js:163
    <anonyme> main.js:173
    <anonyme> main.js:173
@zamentur
Copy link
Contributor

zamentur commented Feb 6, 2025

Could it be related to the mjs mime type issue ?

3e94626

@Thatoo
Copy link
Contributor Author

Thatoo commented Feb 6, 2025

I don't know. How can I make a test to answer this question?

@zamentur
Copy link
Contributor

zamentur commented Feb 6, 2025

Check if your instance has this line in the nginx config /etc/nginx/conf.d/domain.tld.d/nextcloud.conf

@Thatoo
Copy link
Contributor Author

Thatoo commented Feb 6, 2025

not exactly :

include mime.types;
types {
    text/javascript mjs;
}

js is missing in text/javascript js mjs;

@ericgaspar
Copy link
Member

js was removed because it is already present in default NGINX MIME type : #742

@Thatoo
Copy link
Contributor Author

Thatoo commented Feb 9, 2025

The problem is that I don't know what to answer to the dev here : nextcloud/picker#51 (comment)
My server is properly configured as it is configured by yunohost 😄

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

No branches or pull requests

3 participants