All Questions
81 questions
0
votes
0
answers
58
views
Removing SCSS included file warnings
I am building a Svelte project which relies on GDS components and styling from GOV UK frontend, and I get a lot of error messages similar to the one in the Warning message section below.
Is there a ...
-1
votes
1
answer
107
views
Symfony with Svelte config doesn't generate package.json
I'm currently trying to set up a Symfony project and add Svelte to the project. On their website they claim that it's easy to add Svelte UX to the project.
I have the Symfony server running, but the ...
1
vote
1
answer
195
views
Getting npm run dev errors trying to work with Svelte
I'm trying to work through a Svelte starter project on MDN. I was able to run the first step of the project locally after using npx but when I tried to clone the Github repo I keep getting an error on ...
0
votes
1
answer
902
views
svelte.config.js: Unexpected option config.kit.vite
I just started learning Svelte/kit, I stated a small project to learn, I wanted a calendar. I found svelte-calendar package in npm. I installed the package,
npm i svelte-calendar
And I set this in ...
0
votes
1
answer
93
views
Using treant with svelte
I am trying to use the treant tree-drawing library with svelte. Here's as far as I got - I'm ok with basic svelte and JS/TS as well as web dev, but I seem to be missing a key bit of info how things ...
0
votes
0
answers
48
views
installing sveltekit error unexpected identifier. my bad or theres?
Is there something I can do to get sveltekit to install?
I get
C:\dev\svelt\sOverstand>npm create svelte@latest sOverstand
npx: installed 7 in 9.849s
C:\Users\Hp\AppData\Roaming\npm-cache\_npx\9532\...
0
votes
0
answers
132
views
Error: Cannot find module 'openai' in Svelte application
Description of the Problem:
I'm encountering an issue in my Svelte application where I'm getting the following error message:
Error: Cannot find module 'openai' or its corresponding type declarations....
2
votes
2
answers
1k
views
SyntaxError when building SvelteKit: The requested module 'intl-messageformat' is a CommonJS module
I'm getting the following error when building for production. Here's the output of npm run build running on Node v16.20.1
npm run build
> [email protected] build
> vite build
vite v4.4.9 ...
0
votes
0
answers
87
views
How can I write a component for general use in modern frameworks
I want to write a chat component in Svelte (and SvelteKit), and make it available to everyone through npm. I want to use it in a React project.
I researched it a bit but couldn't find any good answer ...
0
votes
0
answers
224
views
How to use autoprefixer with svelte?
I've tried to piece together how to get autoprefixer to work in svelte from the few posts hanging about but have been unsuccessful.
I ran npm install postcss postcss-cli autoprefixer in my root ...
0
votes
1
answer
90
views
Svelte-Electron: Error occurred when executing command: yarn run dev
I use template from https://github.com/soulehshaikh99/create-svelte-electron-app , and it works just fine for a while. Been normally developing for days, but when I restart my computer/vs code, the ...
1
vote
1
answer
138
views
I cannot install and run the basic Svelte demo on my company computer
I am trying to install the basic Svelte demo project on my company laptop and it fails. This is most likely related to the increased security and proxy we are using. On my private PC, everything ...
0
votes
1
answer
436
views
Interoperating web components from NPM modules with Svelte
I am building a basic Single Page App (SPA) using Svelte. I have been able to achieve basic layout and styling happily, and an asynchronous web request when you click a button.
Now, my goal is to use ...
0
votes
2
answers
1k
views
Can't create a sveltekit project
When I run npm create svelte@latest app in my folder I am getting this error.
node:internal/errors:490
ErrorCaptureStackTrace(err);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\...
-1
votes
1
answer
190
views
How does importing module functions work when using npm in Svelte?
i don't understand how i properly use imports when working with Svelte and npm. This is a svelte component, which i can't get to work.
Uncommenting "//import { Configuration, OpenAIApi } from &...