Closed Moebits closed 5 years ago
I fixed this issue, nvm.
how can you fix it?
@danghuudat I have the same issue, and it works fine when I changed to use kuroshiro 1.1.2 version.
I can confirm @univeous' solution works.
in package.json
, mine looked like the following:
"kuroshiro": "^1.1.2",
however yarn install
installed kuroshiro version 1.1.0, and the error was there
so changing that line to the following fixed the problem (replace caret with tilde)
"kuroshiro": "~1.1.2",
I get this error using both import and require statements. I have tried reinstalling the package but it does not work.
Import: import Kuroshiro from "kuroshiro"; const kuroshiro = new Kuroshiro();
Require: const {Kuroshiro} = require("kuroshiro"); const kuroshiro = new Kuroshiro();