Gerark
Gerark
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
I'm not sure what standard library actually means in this context. Does Svelte provides a standard library and if the answer is yes what they provide? Or are you talking about TRL in this case?
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
just dropping by to say that after updating everything the npm link works as expected. It works also when running through npm run dev. I just have to npm run build my library package to update the dist folder.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
I thought the automatic project creator was going to setup for latest packages with that "npm create svelte@latest" thing. My bad
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
oh jeez... there's so much to learn XD as a simple game developer landing in the web world is like being in alice in wonderland lol. Cool stuff everywhere.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
out of curiosity I wanted to try out the SvelteKit official page/tutorial: https://kit.svelte.dev/docs/creating-a-project If I create the project from there I get these dependencies instead which looks way older compared to what you copied above:
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
Oh yes I'm aware of them 🙂 I wanted to go all-in and starting from scratch to get used to svelte as much as possible. In fact most of the component I implemented are very raw 😅
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
I really appreciate it. Thank you for taking time.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
I must have followed a very outdated tutorial
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
oh my 🤦 I thought I got the latest but tbh I can't even remember from where I got that 😐 thank you!!! I'll try it out asap.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
I randomly tried one of the last comment in the Issue you linked without success 😦
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
Production build -> npm run build ? In that case I get this error ( very similar to the issue with resolving the import ):
[vite]: Rollup failed to resolve import "@gerark/just-svelte-lib/styles/themeStore" from "C:/Data/TTRPG/FoundryData/Data/Data/modules/just-popcorn-initiative/src/ModuleSettings.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
[vite]: Rollup failed to resolve import "@gerark/just-svelte-lib/styles/themeStore" from "C:/Data/TTRPG/FoundryData/Data/Data/modules/just-popcorn-initiative/src/ModuleSettings.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
just to give a status update if I use the exact config modifications you proposed and then: - I run: npm install - Then : npm link @gerark/just-svelte-lib - and i run with: npm run dev I don't get anymore the importing errors but it looks like the library being used is the npm packaged one. Not the link ( I changed the default color of a button component and I see no changes )
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
( which of course didn't work at all )
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
if you see that:
optimizeDeps: {
exclude: ['@gerark/just-svelte-lib']
}
optimizeDeps: {
exclude: ['@gerark/just-svelte-lib']
}
Ignore it as it was an extra attempt.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
ahah 😄
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
Maybe the vite config from the project which is importing the lib could help? I'm pretty sure I'm fucking up somewhere badly.
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
Or this ( just to give an example of an attempt to import components )
Failed to resolve import "@gerark/just-svelte-lib/components/Typography/Typography.svelte" from "src\view\selection-window\CombatantGrid.svelte". Does the file exist?
Failed to resolve import "@gerark/just-svelte-lib/components/Typography/Typography.svelte" from "src\view\selection-window\CombatantGrid.svelte". Does the file exist?
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
What I get btw is a bunch of errors similar to this:
Failed to resolve import "@gerark/just-svelte-lib/styles/themeStore" from "src\ModuleSettings.js". Does the file exist
Failed to resolve import "@gerark/just-svelte-lib/styles/themeStore" from "src\ModuleSettings.js". Does the file exist
47 replies
TTyphonJS
Created by TyphonJS (Michael) on 10/17/2023 in #typhonjs-runtime
Local Development w/ NPM Link
or should I remove it when I'm using the linking approach?
47 replies