-
Hi. I built a module that generates epub files based on user input and a part of the functionalities is to read template files. When i try to use the module in another project, the templates cannot be found. The logs from my terminal can be found below. Listening on http://localhost:8000/
Generating Template Files...
Downloading fonts...
No fonts to download
Downloading images...
error: Uncaught (in promise) NotFound: No such file or directory (os error 2)
const css = Deno.readFileSync(
^
at Object.readFileSync (deno:runtime/js/40_read_file.js:11:16)
at EPub.generateTemplateFiles (https://deno.land/x/epubgen@0.2/epub.ts:101:22)
at EPub.render (https://deno.land/x/epubgen@0.2/epub.ts:64:10)
at EPub.genEpub (https://deno.land/x/epubgen@0.2/epub.ts:82:16)
at epub (https://deno.land/x/epubgen@0.2/mod.ts:21:37)
at Download.epub (file:///home/waptik/Projects/deno/playground/crawler/utils/download.ts:13:27)
at Server.<anonymous> (file:///home/waptik/Projects/deno/playground/crawler/start.ts:7:18)
at Server.#respond (https://deno.land/std@0.152.0/http/server.ts:298:37)
at Server.#serveHttp (https://deno.land/std@0.152.0/http/server.ts:340:20)
Watcher Process finished. Restarting on file change...
|
Beta Was this translation helpful? Give feedback.
Answered by
waptik
Aug 31, 2022
Replies: 1 comment
-
I managed to get it fixed from the help on discord |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
waptik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I managed to get it fixed from the help on discord