Skip to main content

All Questions

Tagged with
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 ...
vogomatix's user avatar
  • 5,091
-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 ...
IncrediblePony's user avatar
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 ...
Milton Crandall's user avatar
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 ...
Gaurav Dhanraja's user avatar
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 ...
Holly's user avatar
  • 13
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\...
pashute's user avatar
  • 4,063
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....
Trikoo's user avatar
  • 1
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 ...
Luca's user avatar
  • 31
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 ...
Ogulcan Bozkurt's user avatar
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 ...
Lol Lol's user avatar
  • 313
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 ...
louislugas's user avatar
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 ...
Human Wannabe's user avatar
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 ...
qqq's user avatar
  • 1,430
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:\...
Jaksa's user avatar
  • 53
-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 &...
Nils's user avatar
  • 3

15 30 50 per page
1
2 3 4 5 6