Closed geoidesic closed 3 months ago
This was working until this commit: https://github.com/geoidesic/foundryvtt-actor-studio/commit/a921ed66b33b0c46e5063fb631b8162fe4f3c46e
The first two commits in #41 were wrongly labelled. They belong here.
While this approach works, it also has the side effect of creating a large number of files in the build, which is not idea, considering that the build writes to the root of the project.
Try #39. This would put these additional files out of the way and make it less confusing.
Instead of dynamic imports at the time when they are required, consider using a different way of importing. The reason for the dynamic imports was to potentially make this module system agnostic. However, it's not clear that it's viable. There are likely to be many pitfalls in making it work for another system. E.g. Advancments are a 5e thing, specifically and the workflow currently relies on that.
ready
hook all at once, based on config, and then store that map of imports to a svelte store. But I'm not sure this will prevent the additional files from being created by the build.The changes to the GitHub workflow have fixed this
I'm having something weird. I'm doing dynamic async imports for certain dynamic components. It's working just find when run via a dev server (e.g. npm run dev) but once I build it, then the imports break.
From the error message it seems that the import is done via URL, rather than via code. The URL exists and is browsable in the dev server, but not once built.
Am I doing it wrong? Or are dynamic imports not available to the build?
E.g.
So this works if I run the dev server. It seems to find it via URL:
However, once built, the path it looks for changes, leaving out the module id and reporting a 404:
Even if I correct the ommssion in the URL manually I still see a 404