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

Error when using demo code #88

Open
eric999j opened this issue Nov 26, 2021 · 4 comments
Open

Error when using demo code #88

eric999j opened this issue Nov 26, 2021 · 4 comments

Comments

@eric999j
Copy link

FireShot Capture 518 - RunKit + npm_ kuroshiro - npm runkit com

TypeError: Kuroshiro is not a constructor

@halfsprit
Copy link

becase the demo code is not correct, it shoulde be let Kuroshiro = require('kuroshiro').default;

@yuuz233
Copy link

yuuz233 commented Jul 30, 2022

It works under v1.1.2, but not latest, just like described in issues #66. Just find package.json and under dependencies put `"kuroshiro": "~1.1.2", this will let your package manager rollback the version from latest to 1.1.2 where it still works.

@Anatoly03
Copy link

becase the demo code is not correct, it shoulde be let Kuroshiro = require('kuroshiro').default;

Is there a solution for ES6?

@Anatoly03
Copy link

@yuuz233's solution works, thank you

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

4 participants