Release: `TRL 0.0.23` - "v11 hot patch"

Greets @FVTT ▹ Developer! I just released a hot patch of TRL for v11 support. The only thing changed is supporting the reactive embedded collections API of TJSDocument to take into account the changes of v11. This is not the next full update of TRL. It is just a hot patch. Everything else is the same as TRL 0.0.22 except for the v11 fix for embedded reactive collections. Outside of this one change there should be no other issues using TRL 0.0.23 on Foundry v10 & v11. Of general interest I recommend updating to the latest Vite: 4.3.8 as there are many improvements in the 4.3.x releases. Also, take note that if you update to a Svelte version 3.57.0 or greater there are new accessibility / a11y warnings depending on what you use in TRL / mainly the RTE editor components. I have already fixed that for TRL 0.0.24, but you will see new a11y warnings when building. This is not a problem and already fixed for the next official release. --- Note: The next release of TRL / 0.0.24 that moves things forward will be out in a couple off weeks. Just a heads up that the next release will have some API restructuring / not a change in functionality. This is a firm move toward "beta" and there will be some changes in where various API is imported from in the direction of more finite / exact sub-package exports. The good news is that rock solid TS declarations will be shipped with the upcoming release along with 100% cross-linked documentation making discoverability of aspects of TRL now possible. I'll mention more in the release notes for TRL 0.0.24.
5 Replies
WHITESPINE
WHITESPINE11mo ago
Excited for TS declarations!
geoidesic
geoidesic11mo ago
I'm confused about how to install the hotpatch?
TyphonJS (Michael)
Install 0.0.23 of TRL.
geoidesic
geoidesic11mo ago
Ok tx but after doing that I get errors on build:
[commonjs--resolver] Missing "./svelte/store" export in "@typhonjs-fvtt/runtime" package
error during build:
Error: Missing "./svelte/store" export in "@typhonjs-fvtt/runtime" package
at bail (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:32678:8)
at resolve (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:32755:10)
at resolveExports (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:34135:12)
at resolveDeepImport (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:34153:31)
at tryNodeResolve (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:33842:20)
at Object.resolveId (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:33602:28)
at file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/rollup/dist/es/shared/rollup.js:22748:40
[commonjs--resolver] Missing "./svelte/store" export in "@typhonjs-fvtt/runtime" package
error during build:
Error: Missing "./svelte/store" export in "@typhonjs-fvtt/runtime" package
at bail (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:32678:8)
at resolve (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:32755:10)
at resolveExports (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:34135:12)
at resolveDeepImport (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:34153:31)
at tryNodeResolve (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:33842:20)
at Object.resolveId (file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/vite/dist/node/chunks/dep-2faf2534.js:33602:28)
at file:///Users/noeldacosta/Library/Application%20Support/FoundryVTT/Data/systems/surge/node_modules/rollup/dist/es/shared/rollup.js:22748:40
TyphonJS (Michael)
I gather you did something wrong then... A more tried and true approach is to do a clean install. Remove node_modules and the package-lock.json and run npm install again. 0.0.23 does not change any import paths. That error message would be more in line if you installed 0.1.0. Do remember that import paths are more refined, so there will be some refactoring work when you move to 0.1.0 that requires changing paths to more finite / exact paths for various resources.
Want results from more Discord servers?
Add your server
More Posts