Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

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

Closed
nooreldeensalah opened this issue Aug 29, 2021 · 4 comments

Comments

@nooreldeensalah
Copy link

nooreldeensalah commented Aug 29, 2021

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,

@nooreldeensalah
Copy link
Author

nooreldeensalah commented Aug 29, 2021

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.

@nooreldeensalah
Copy link
Author

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.

@nooreldeensalah nooreldeensalah changed the title Identifier 'global' has already been declared when using SvelteKit Identifier 'global' has already been declared when using SvelteKit due to outdated version on npm registry Aug 30, 2021
@nooreldeensalah
Copy link
Author

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.

@vincjo
Copy link
Owner

vincjo commented May 14, 2022

Changed as "globalFilter" identifier

@vincjo vincjo closed this as completed May 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants