Open eric999j opened 2 years ago
becase the demo code is not correct, it shoulde be let Kuroshiro = require('kuroshiro').default;
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.
becase the demo code is not correct, it shoulde be
let Kuroshiro = require('kuroshiro').default;
Is there a solution for ES6?
@yuuz233's solution works, thank you
TypeError: Kuroshiro is not a constructor