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

Kanji package does not work outside of Node enviroment #38

Open
ranger-ross opened this issue Feb 2, 2022 · 1 comment
Open

Kanji package does not work outside of Node enviroment #38

ranger-ross opened this issue Feb 2, 2022 · 1 comment

Comments

@ranger-ross
Copy link

The kanji package appears to have been broken after the v0.3.1 release (starting in v0.5.0) in web browsers.

Running

kanji.jlpt.n5()

will yield the following error

Uncaught ReferenceError: __dirname is not defined
    at Jlpt.get n5 [as n5] (index.js:46:42)
@echamudi
Copy link
Owner

Hey, currently the Kanji package is only designed for the Node environment. I might make it available for the web as well though sometime in the future.

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

2 participants