TM
TyphonJS (Michael)40d ago
The follow on error you posted in #dev-lounge is likely due to the rejection on render for the duplicated IDs. Are you sure the data for TJSDialog.wait and the other application doesn't use the same CSS ID in application / dialog options?
V
Vauxs40d ago
V
Vauxs40d ago
here is how it looks
TM
TyphonJS (Michael)40d ago
You reuse the ID vauxs-archive several times in different elements in: - src/view/Searchbar.svelte. - src/view/ArchiveEditor.svelte - src/view/ArchiveCreator.svelte and in an Application: src/view/ArchiveApplication.js Just did a quick search of your code base... There must be only one visible element with the same CSS ID at a time. The ID should be unique to a specific app otherwise use CSS classes to share styles across your package.
V
Vauxs40d ago
Annoying, but fair
TM
TyphonJS (Michael)40d ago
If those components listed are all part of ArchiveApplication then you don't need the ID applied as it will already be applied to the main app div element.
V
Vauxs40d ago
They are not, but fixed it anyway
V
Vauxs40d ago
I was using the ID, improperly, as a selector basically now it all works
TM
TyphonJS (Michael)40d ago
Interesting error condition though with the actual exception which is likely caused with the use of TJSDialog.wait. The CSS ID check in SvelteApplication.render normally stops follow on errors / explosion from occurring and rejects the render, but I've only tested this when opening normal applications that share IDs. IE the ideal is just getting the warning message and not the exception / explosion after things don't get setup correctly. My guess perhaps those components were used in the TJSDialog and then subsequently launching a new app choked.
V
Vauxs40d ago
The components are only used in those functions and not called or rendered anywhere else 🤷 Sidenote: I recommend looking at the github release action I have You may be interested in using it as a template Including the fact it finally has no Node 16 deprecation warnings
TM
TyphonJS (Michael)40d ago
I'll definitely make sure things have latest action dependencies. Hard to say if all of the extra stuff like publishing to Foundry is useful out of the gate. Perhaps taking a look at it and commenting it out, but probably better to keep that in a dev guide that is updated vs just commented out in code. Indeed some aspects would be nice to clean up in the Vite config and such. I'll likely be creating a streamlined CLI for Foundry / TRL soon for standard setup aspects.
Want results from more Discord servers?
Add your server
More Posts
Dynamic Reducers use casesI am currently in the process of rewriting how the Titan system handles some things, and I was wondeApplicationShell, elementRoot, and reactive offsetHeight with resizable: trueI am trying to make a menu that requires a bit of JS in order to work to set maximum heights for lisTJSDocument discussion w/ VoodooFrogFollowing up on this discussion from `#dev-lounge` from @VoodooFrog: > I have a TJSDocument for an Advanced Templates Module (PF1)A thread to discuss Svelte and the Advanced Templates module.Automated AnimationsThis is a forum post to track discussion on Automated Animations. When TRL `0.2.0` is released I plasetPosition in SvelteApplicationThe `SvelteApplication` class has a function called `setPosition` that is there to support core behaTJSDocument delete actionWhen emitting this event, TJSDocument passes "undefined" as the first argument instead of the documeQuest Log Permissions / InfoHI @larsvonawesome. You asked: > Trying to find more info on Forien's Quest Log; I'm having an issueCreating a derived reducer for a DynMapReducerDo you have an example of how to make a derived reducer for a reducer that's not part of a TJSDcoumeQuest Log objective counts not displayingHi there. the Quest Log objectives (done/total) don't seem to change when I mark quests as completeItem Piles: AuctioneerA few people in the League & some that I know personally have commissioned an Item Piles powered aucSvelecte AlternativesI'm looking to implement a searchable list of sorts, and I found Svelecte: <https://mskocik.github.iSetting up TRL / contributing to existing module (Item Piles)Hi @Paith. I have started this forum post where we can continue to discuss setting up TRL and gettinReactivty and prepareDerivedDataFrom @Wasp > So I'm using prepareDerivedData to, well, derive some data for my items; some of them aLocal Development w/ NPM LinkFrom @Gerark: > Hello! this is probably a base webdev question but I can't find a good reference forIssues Configuring TyphonJS in TSI'm receiving this message in my TS Files: `Cannot find module '#runtime/svelte/application' or its TRL / Svelte based game systemsThis post is a list of repos for game systems built with TRL / Svelte for Foundry. Please DM me if yList of TjsdocumentsLink to original response: https://discord.com/channels/737953117999726592/1067337319041998869/11562Is there a way to export the quest log?I'm trying to setup a world for the PF2E Beginner Box but right now I working in a beta testing worFabricate@MisterPotts. Just starting a forum post to keep track of the conversation. > Fabricate doesn't ma