Skip to content

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

@erikaemma

Description

@erikaemma

看网上的说降版本到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的。
所以,只能修改到这里了,请大家看看还在哪需要添加什么才能让其全功能运行了。

以上。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions