Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError in Typescript #43

Open
DestinyIJ opened this issue Feb 10, 2023 · 5 comments
Open

Uncaught TypeError in Typescript #43

DestinyIJ opened this issue Feb 10, 2023 · 5 comments

Comments

@DestinyIJ
Copy link

clj-fuzzy.js:2 Uncaught TypeError: Cannot use 'in' operator to search for 'clj_fuzzy' in undefined
Capture

@stevenschemers
Copy link

Same thing happening to me when using Vite

@Aivean
Copy link

Aivean commented Sep 17, 2023

Repro:

     const moduleUrl = 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';

    try {
        const wordsToNumbersModule = await import(moduleUrl);
        console.log(wordsToNumbersModule.default('one hundred'));  // Should output 100
    } catch (error) {
        console.error('Failed to load module:', error);
    }

https://jsfiddle.net/6vxg5ae0/

@csp197
Copy link

csp197 commented Oct 27, 2023

Can confirm...
I ran into the same issue using this library for a React app.

I suspect the error refers to the clj-fuzzy library, which has been deprecated, for the talisman library.

I made the necessary changes in my PR :)

@pmalacho-mit
Copy link

Awesome, thanks @csp197 !! When do you think your PR will be incorporated into a new version now that it's approved? I'm facing this same issue right now with a rollup bundle

pmalacho-mit added a commit to mitmedialab/prg-raise-playground that referenced this issue Nov 29, 2023
@csp197
Copy link

csp197 commented Dec 6, 2023

Hi @pmalacho-mit,
I don't have write access to this repo, so I believe only the repo maintainer, @finnfiddle, can merge this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants