All Questions
Tagged with svelte-component node.js
7 questions
4
votes
1
answer
871
views
Invalid configuration found in /Users/nickk/Documents/Pioneer_Frontend/components.json
In the svelte framework I installed Shadcn UI library and installed three of it's components but now when I try to install any other library it gives me this error.
Component.json file looks like this ...
0
votes
1
answer
295
views
How do I pass props in each blocks in Ssvelte
I'm a bit confused with Svelte's props.
I have a component named Assignment which I will use in my Board component.
I wish to have a dynamic array prop in my Assignment's {#each} block.
<script>
...
3
votes
0
answers
266
views
Electron: Using Svelte … How do I invoke dialog.showOpenDialog IN/FROM a .svelte file/component?
This should be SOOOoooo simple and I can't figure it out. :-(
Electron ➙ Svelte ➙ User pushes button ➙ Dialog box opens!
I want to use Electron's dialog.showOpenDialog() because I need to specify many ...
0
votes
1
answer
609
views
Install for [ 'create-svelte@next' ] failed with code 1
I am a newbie to svelte and trying to learn about it but I couldn't set up the project from the beginning.
When I type npm init svelte@next my-app to start the up it throw an error in the terminal,
C:\...
3
votes
1
answer
4k
views
Svelte: make component reactive to variable (rerender)
I want to rerender "Body" (my svelte component) whenever "view.current" changes so it renders the corresponding .svelte view/component:
App.svelte
<script>
import ...
0
votes
1
answer
559
views
how to import stripe.js in sapper app into my preload() or onMount()
I have installed stripe.js using the following command : npm install stripe
Now I would like to import it into my sapper component so I can use it but unable to figure out how to do that despite ...
0
votes
1
answer
559
views
Create a global svelte-component that works like svelte:head
In my current project I am working with a self-developed module system, where the individual modules should also have the possibility to extend e.g.the navbar by simply writing some HTML inside a <...