Last 12 weeks Ā· 0 commits
2 of 6 standards met
Hi, When installing and using @sveltejs/svelte-virtual-list@3.0.1 in a Svelte + Vite project, Iām running into an error related to a missing export condition. According to the Vite Svelte FAQ (Missing exports condition), this usually happens when the package.json is missing an "exports" field that defines the appropriate conditions (e.g., "svelte", "import", "require"). Steps to Reproduce Create a fresh SvelteKit or Vite + Svelte project. Install @sveltejs/svelte-virtual-list@3.0.1 Import and use the package in a component. Run vite dev or vite build. Expected Behavior The package should resolve correctly without throwing a missing exports condition error. Actual Behavior Vite throws an error about a missing exports condition. Possible Solution Update package.json for svelte-virtual-list to include proper "exports" entries following the guidance in the Vite Svelte FAQ. Example: "exports": { ".": { "types": "./dist/index.d.ts", "svelte": "./dist/index.js", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" } } Thanks for looking into this!
Repository: sveltejs/svelte-virtual-list. Description: A virtual list component for Svelte apps Stars: 758, Forks: 55. Primary language: JavaScript. Languages: JavaScript (66.2%), Svelte (32.6%), HTML (1.3%). Homepage: https://svelte.dev/repl/f78ddd84a1a540a9a40512df39ef751b Open PRs: 8, open issues: 31. Last activity: 3y ago. Community health: 50%. Top contributors: Rich-Harris, benmccann, jacwright, mhkeller, mustafa0x.
This is a summary of issues around similar use-cases: #15 lazy loading: [bug, resolved?] adding more items keeps scroll position and increases scroll length below #28 scroll to song: bring an item (by index) into view #30 filtering list: [bug] removing more items than current scroll position assumes causes "empty" viewport #32 messenger: autoscroll to bottom if new items loades I hope the use-case-namings are helpful - all these issues have in common, that we expect certain behaviours from the scroll position. To prevent solving one issue while re-creating another, I suggest to work towards one PR that solves them together :bullettrain_side: :handshake: REPL: https://svelte.dev/repl/1c36db7c1e7e4ef2bfb04874321412e5?version=3.20.1 ___ comparable vanilla implementations: https://github.com/sergi/virtual-list https://github.com/voltraco/infinitely
Look at this codepen They are not hardcoding heights for each item Is that possible with this library?