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

V1.2.0浏览器版本运行出错,修改后可运行,请提建议补全! #98

Open
erikaemma opened this issue Aug 13, 2022 · 0 comments

Comments

@erikaemma
Copy link

erikaemma commented Aug 13, 2022

看网上的说降版本到1.1.2,试了下可行,又看到提到了default(我js仅仅能看懂基本语句,nodejs完全不懂),于是开始对比两者的区别:

  1. 第879行添加module.exports = exports["default"];
  2. 第898行添加module.exports = exports["default"];

以上,例程是可以运行了(无需包含kuromoji.js只需要其dict文件夹即可)。其他功能未测试。
就像我说的,完全不懂nodjs,就像我完全不知道在没有kuromoji.js的情况下他是如何require到kuromoji的。
所以,只能修改到这里了,请大家看看还在哪需要添加什么才能让其全功能运行了。

以上。

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

1 participant