Skip to main content

All Questions

Tagged with
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
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
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
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
0 votes
2 answers
1k views

SvelteKit can't find audio files running with node build

I have an API (located at /src/routes/api/bell/+server.ts), that returns a random audio file as a base64. My Audio files are located at /src/lib/audio (I also tried /src/lib/sever/audio). I'm using ...
SleepingForge's user avatar
0 votes
1 answer
253 views

When I try to import a function with npm modules that I exported, I get "Class extends value undefined is not a constructor or null" in sveltekit

I am trying to send emails with values in my form with sveltekit using npm module: "nodemailer", but when I import the function I have I get this error: "Class extends value undefined ...
user avatar
22 votes
3 answers
9k views

Cannot create Sveltekit app - ERR_TTY_INIT_FAILED uv_tty_init returned EBADF (bad file descriptor)

When I run the recommended $ npm create svelte@latest myapp, I get the following error: Welcome to SvelteKit! node:internal/errors:490 ErrorCaptureStackTrace(err); ^ SystemError [...
doublespoiler's user avatar
0 votes
1 answer
963 views

Unexpected option config.kit.methodOverride when running Svelte

I am currently in the middle of a Svelte project and updated to the latest version using the migration tools provided. However the project no longer interacts with npm. Running npm i will install node ...
OHello's user avatar
  • 97
2 votes
1 answer
523 views

"Unknown compiler option 'preserveValueImports'.ts" error when making a sveltekit project

Whenever I create a sveltekit project with tyepscript, I always have the "Unknown compiler option 'preserveValueImports'.ts" appear in the tsconfig.json file. The error appears over the '&...
J Creations's user avatar
0 votes
1 answer
2k views

npm create svelte@latest not working correctly on Ubuntu

When I try to use npm create svelte@latest to create a SvelteKit app it won't work when using VS Code with SSH. The SSH server I'm connected to runs Ubuntu 20.04.2 on 64 bit Intel hardware. When I try ...
Michael's user avatar
  • 38
0 votes
1 answer
2k views

Missing shims for Node.js built-ins, Missing global variable names

I updated my project using npm-check-updates. Then I started to get a weird error. I did the suggestion on the terminal and installed polyfill-node but did not work. Nothing really helpful on the net ...
Sami Al-Subhi's user avatar
1 vote
0 answers
1k views

Install error on Vite project with Svelte

I want to try out svelte, but whenever I try to install all the npm dependencies it just won't work. Here's the latest log from the npm install command: 358 verbose stack Error: command failed 358 ...
Phishy1's user avatar
  • 46
1 vote
1 answer
860 views

Function called outside component initialization from brand new SvelteKit installation

When I create a new Svelte App as explained in the doc https://kit.svelte.dev/docs/introduction#getting-started , I'm doing: npm create svelte my-app cd my-app npm install npm run dev Then when I go ...
Henri's user avatar
  • 1,761
0 votes
1 answer
2k views

Process is not defined Svelte/Vite (using node-imap)

I am trying to use the library node-imap in my SvelteKit/Vite application. I import the library with import * as Imap from "imap";. When I try running my application, I get the following ...
fevar's user avatar
  • 87
2 votes
1 answer
250 views

tabulatorTables is not defined (version 5)

Here's the documentation I installed the latest package 5.2.7 like this: npm i tabulator-tables --save I am importing it with this: import { TabulatorFull as Tabulator } from "tabulator-tables&...
Sir Rubberduck's user avatar

15 30 50 per page