Closed chrisj closed 6 months ago
Thanks for reporting this.
I actually have a test that the examples build correctly (python/tests/client_test.py), but it does not catch this issue for some reason.
I think this issue is due to Vite's optimizeDeps
dependency scanner, because the vite.config.ts
included with the example actually disables the data sources that require those HTML files.
npm run build
does work with the example, but that uses a separate build process --- and the html files don't get used in this case due to those data sources being disabled. It still works after modifying vite.config.ts
to enable all data sources, though.
I think the problem is due to a bug or limitation of the optimizeDeps
scanner, but I will need to investigate more to figure out exactly what the issue is, how to work around it, and why it doesn't get triggered by the existing test of building example.
Webpack example works
Using google/neuroglancer as the neuroglancer dependancy.