Skip to main content

All Questions

Tagged with
0 votes
1 answer
28 views

How to solve iife/umd conflict with supabase

I have installed supabase using npm install @supabase/supabase-js I am using Svelte and use nvm use 16.16.0 In my script I have the line import { createClient } from '@supabase/supabase-js' I get ...
Psionman's user avatar
  • 3,749
0 votes
0 answers
24 views

Migrate conditional custom element compilation in Svelte Rollup config to SvelteKit Vite config

In my Svelte 3 component library I'm using this Rollup configuration to conditionally render custom elements. Only files with the *.wc.svelte extension are compiled as HTML5 web components. export ...
david's user avatar
  • 2,585
1 vote
1 answer
523 views

VS Code: The Svelte server crashed 5 times. Cannot find module @rollup/rollup-win32-x64-msvc

Happens when saving and Prettier tries to format the code. Can anyone help me with this error? It's driving me insane. Here's the error log: Error: Cannot find module @rollup/rollup-win32-x64-msvc. ...
Sir Rubberduck's user avatar
0 votes
1 answer
126 views

Unloading Svelte app, the reloading with new code

The svelte app is built in the Electron back-end, using rollup and some plugins on run-time. Currently I have a interval that triggers build every few seconds but I am planning to watch files and ...
Alex's user avatar
  • 66.3k
2 votes
0 answers
429 views

rollup throws missing warning on existing plugin-node-resolve option

I'm launching svelte with npm run dev after updating some packages and now I'm getting this warning: WARNING: Your @rollup/plugin-node-resolve configuration's 'exportConditions' array should include '...
Matthew Trevor's user avatar
0 votes
1 answer
90 views

ParserError from `import type { User }` for Svelte app

I'm running into the following ParseError: Unexpected token error when trying to start up a Svelte application via the npm run dev command: $ npm run dev > [email protected] dev > rollup -c -w ...
flyingfishcattle's user avatar
2 votes
0 answers
428 views

svelte + rollup + typescript + tsconfig paths: Make files with .svelte extension importable by absolute path

Does anyone possess secret knowledge how to make this work? I am trying to migrate from relative to absolute imports using tsconfig paths and having problems with resolution of *.svelte files. ...
Evgeny A.'s user avatar
  • 741
0 votes
2 answers
1k views

How to add HMR to Rollup with Svelte?

I am using Svelte and Rollup for my application. I used official Svelte template before it was archived. This template uses rollup-plugin-livereload which reloads whole page on every code change. I ...
sagar007's user avatar
0 votes
1 answer
654 views

Automate events A11y in Svelte

In the latest Svelte version they have added new accessibility warnings. the doubt I have is that I would like to automate it on build so I don't have to constantly write the onkeyDown event as in the ...
Takyo's user avatar
  • 113
0 votes
1 answer
208 views

Svelte event dispach (component) and one-liners

I actually don't seek a solution, as I already know it. I'm just trying to understand what did actually happen before. So any elaborate explaining is highly appreciated. Disclaimer: I already know ...
Przemek's user avatar
  • 175
0 votes
2 answers
385 views

Trailing backslash in SvelteJs routes - Changing Request Urls of static assets in public folder

So, I have a component in Svelte, which is supposed to get rendered in the route = property/:propId This component is responsible for fetching a property by id and display them on the client. But the ...
Dwaipayan Chakroborty's user avatar
2 votes
1 answer
1k views

Svelte Rollup unexpected error on type import

I am trying to build my Svelte-Component which is written in typescirpt. I am using rollup and keep getting the error message [!] (plugin svelte) ParseError: Unexpected token import type { ...
axmx's user avatar
  • 21
2 votes
1 answer
257 views

Svelte project error port 3000 is already in use

I'm new to web development, and even newer to Svelte. I opened up a project and everything went fine. When I ran 'npm run dev' it pointed me to localhost 8080 and everything went well--rollup launched ...
Raskolnikov99's user avatar
0 votes
1 answer
1k views

Nodemon breaks rollup's hot reload plugin

I'm figuring out how to develop web apps fullstack. I use Svelte for frontend and Express.js for backend. I've configured everything so that the Express app serves the client the built application. ...
The Developer's user avatar
1 vote
1 answer
745 views

Building Svelte app with Rollup - css bundle different every build

We are building a Svelte app and using Rollup to compile the components into the JS, the JS Map, and the CSS. When we run the build, even if we've changed nothing in the source code, the compiled CSS ...
chrisfromredfin's user avatar

15 30 50 per page
1
2 3 4 5
8