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

ESM下有以下错误,能帮忙解答一下吗?感谢! #107

Open
frandlee opened this issue Apr 3, 2023 · 1 comment
Open

ESM下有以下错误,能帮忙解答一下吗?感谢! #107

frandlee opened this issue Apr 3, 2023 · 1 comment

Comments

@frandlee
Copy link

frandlee commented Apr 3, 2023

TypeError: Kuroshiro is not a constructor

@kanido386
Copy link

Hi @frandlee
We should use const Kuroshiro = require("kuroshiro").default; instead of the example one const Kuroshiro = require("kuroshiro");.

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

2 participants