Thomas Lehmann
Thomas Lehmann
Without more in-depth investigation: the problem seems to be related to the bundling/module-loading. The error is not reproducible in a dev environment with `debug => true`. The difference here is...
I'm not familiar enough with the setup and Vite's bundling internals, and I am happy to attempt fixing it if someone could give me some hints here.
Still reproducible with Nextcloud tag *v30.0.0* and Viewer tag *v30.0.0*,`'debug' => false` (so that a cache-buster parameter is appended to resources) 
> Still reproducible with Nextcloud tag _v30.0.0_ and Viewer tag _v30.0.0_,`'debug' => false` (so that a cache-buster parameter is appended to resources) It's no longer reproducible on viewer tag _v30.0.1rc2_....
> > > Still reproducible with Nextcloud tag _v30.0.0_ and Viewer tag _v30.0.0_,`'debug' => false` (so that a cache-buster parameter is appended to resources) > > > > > >...
Please provide an example folder structure and sorting order with which this can be reproduced. This probably depends on what else is present in the folder, not just the file...
Note: [in `fileUtils.ts` in `genFileInfo()`][code] it's problematic to test _any field_ to be numeric (castable to `Number`) and then converting it to number. Whether or not this is the case...