unifiedjs.github.io icon indicating copy to clipboard operation
unifiedjs.github.io copied to clipboard

Fixed retext-english usage

Open zikunw opened this issue 2 years ago • 1 comments

Initial checklist

  • [x] I read the support docs
  • [x] I read the contributing guide
  • [x] I agree to follow the code of conduct
  • [x] I searched issues and couldn’t find anything (or linked relevant results below)
  • [ ] If applicable, I’ve added docs and tests

Description of changes

retext-english now provides a Parser object. The previous code will not run with the current version of retest-english, which will trigger the warning TypeError: Cannot call a class constructor without |new| in runtime.

The solution is import the Parser object from the package and use it instead when generating the syntax tree.

zikunw avatar Sep 03 '23 21:09 zikunw

Sorry for the wait, thanks for your patience.

I’ve been working on the releases. The parsers are now no longer exported.

I think you can get it from the parse-english package. Could you try updating to that?

wooorm avatar Sep 24 '23 19:09 wooorm

Thanks for your patience.

I rewrote all guides in https://github.com/unifiedjs/unifiedjs.github.io/commit/97178c605a938e2cc6ce40ce1dbc598773f2ac93. See it live here!

wooorm avatar Aug 16 '24 14:08 wooorm