vincjo / svelte-simple-datatables

A Datatable component for Svelte

Home Page:https://vincjo.fr/svelte-simple-datatables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`Identifier 'global' has already been declared` when using SvelteKit due to outdated version on npm registry

nooreldeensalah opened this issue · comments

Edit (August-30@4:26 PM UTC)
I've managed to resolve this issue by installing the repository build directory using npm install vincjo/svelte-simple-datatables.


Hi,

I've tried this library, and it's great, but I've tried using it with SvelteKit and it's not working due to the following error Identifier 'global' has already been declared:
image

I've found an issue #29 and a PR #30 addressing this bug, but I'm using the latest npm version and I got this bug, I've installed the library as a dev-dependency as instructed.

Any help would be appreciated.

Thanks,

The PR changes don't seem to be added to the library code on npm.

This image is from the latest npm version
image

I think this issue has to do with the npm package version being out of date and not being updated.

I managed to resolve this issue by installing the repository build directory using npm install vincjo/svelte-simple-datatables.

I'll rename this issue to be more accurate, then close it.

Well, I thought it would be better to re-open the issue, because I realized someone else using SvelteKit might stumble upon this bug, so until the npm registry is updated, I'll keep this issue open.

Changed as "globalFilter" identifier