-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Example in project README does not work #26
Comments
Welcome @cgwrench! 👋 Have you read https://github.com/orgs/retextjs/discussions/96#discussioncomment-7995777 ? |
Thanks @ChristianMurphy for such a quick response. That's exactly the same issue I'm seeing, and changing the loading of the dictionary to follow what's suggested in that discussion has fixed my issue. Does the README in this repro need to be updated? |
I'd lean yes, the documentation should be updated. |
Well we could change docs of course. Or we can add support for the new, simpler, API? I think I’d prefer that: to support the old and the new interface? Indeed, want to work on a PR? |
Thanks @ChristianMurphy and @wooorm. I'd love to try and contribute a fix. However, when looking into what might need to change, I found that there are tests that cover the various ways you can register a dictionary1. So I was at a bit of a loss trying to explain why I was seeing the issue I first reported in this issue. I've tracked in down to the version of I'm not sure what the correct change to make is so that retext-spell can handle both versions. Do either of you have an insights you cna share on what the best approach might be? Footnotes |
@cgwrench one approach would be to check the |
Thanks @ChristianMurphy. I've had a go at implementing this in #27. Let me know if you've got any feedback, or if there are any changes you'd like to see to how I've done this. |
Closes GH-26. Closes GH-27. Reviewed-by: Titus Wormer <[email protected]>
nice, thanks! |
Initial checklist
Affected packages and versions
6.0.0
Link to runnable example
No response
Steps to reproduce
I attempted to run the example in the project README using the following steps:
Create a new Node project:
Install dependencies:
Copy example:
Run example:
This throw an error:
Expected behavior
I would expect the code to run, with the example output given in the project README produced.
Affected runtime and version
[email protected]
Affected package manager and version
[email protected]
Affected OS and version
Arch Linux
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: