rionlabs / kanji.sh

Frontend for collection of Kanji writing practice sheets. Previously kanji-printer.
https://kanji.sh
MIT License
68 stars 8 forks source link

Source must be specified. See generator/sources directory. #402

Closed thomas992 closed 11 months ago

thomas992 commented 11 months ago

Describe the bug I am unable to specify a source

To Reproduce node main.js jlpt n1

Expected behavior Generates JLPT worksheets

Additional context I am using my own fork that I made that helped getting it working

thomas992 commented 11 months ago
[START] Downloading Kanji data
[DONE✓] Kanji data already downloaded
[START] File sources\jlpt\n1.source for jlpt
C:\Users\tomha\Documents\GitHub\kanji.sh\node_modules\puppeteer-core\lib\cjs\puppeteer\common\Frame.js:236
                    ? new Error(`${response.errorText} at ${url}`)
                      ^

&page=33&title=JLPT N1OT_FOUND at file:///Users\tomha\Documents\GitHub\kanji.sh\generator\template\page.html?data=孤
    at navigate (C:\Users\tomha\Documents\GitHub\kanji.sh\node_modules\puppeteer-core\lib\cjs\puppeteer\common\Frame.js:236:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Frame.goto (C:\Users\tomha\Documents\GitHub\kanji.sh\node_modules\puppeteer-core\lib\cjs\puppeteer\common\Frame.js:206:21)
    at async CDPPage.goto (C:\Users\tomha\Documents\GitHub\kanji.sh\node_modules\puppeteer-core\lib\cjs\puppeteer\common\Page.js:439:16)
    at async processing (C:\Users\tomha\Documents\GitHub\kanji.sh\generator\main.js:99:17)
    at async run (C:\Users\tomha\Documents\GitHub\kanji.sh\node_modules\p-queue\dist\index.js:163:29)

Changing it to "jlpt" manually in the code leads to this error I am not sure how to fix.

thomas992 commented 11 months ago

I fixed it on my fork