In order to use a component I made in one of the samples into my dev porject (which doesn’t have svelte installed) do I have to run npm i svelte -D in the console in vscode?
by user 483253293477265409
In order to use a component I made in one of the samples into my dev porject (which doesn’t have svelte installed) do I have to run npm i svelte -D in the console in vscode?
by user 483253293477265409
Halp
by user 483253293477265409
Typically you’ll want to compare package.json of the project where it works with the one where you want to move the code to. For svelte, there’s multiple packages that need to be added and you need to have a svelte.config.js + the svelte plugin entry in vite.config.js. That should be it