v1ack / svelte-virtual-scroll-list

Virtualized scrolling for big lists
https://v1ack.github.io/svelte-virtual-scroll-list/
MIT License
114 stars 18 forks source link

Uncaught ReferenceError: VirtualScroll is not defined #23

Closed sarathn91 closed 10 months ago

sarathn91 commented 10 months ago

Just installed the dependency using:

npm i svelte-virtual-scroll-list -D

and used it in my svelte component

import VirtualScroll from "svelte-virtual-scroll-list"

I'm seeing below error in browser console and the page is not loading

Uncaught ReferenceError: VirtualScroll is not defined

http://localhost:5000/build/bundle.js:56974

using Svelte 3.59.2

sarathn91 commented 10 months ago

Deleted node_modules and package-lock.json and ran npm install to solve this