DenoDDeno
Powered by
Monwar HussainM
Denoβ€’17mo ago
Monwar Hussain

Encountering error on deployment while importing files

I'm encountering an error after deploying my application to Deno using the deployctl CLI. Locally, I imported files by reading the directory with the
Deno.readdir()
Deno.readdir()
method. I then iterated over these files to retrieve the default object each file exported, and everything worked fine. However, after deploying to Deno's cloud, I'm getting a "file not found" error.

I attached screenshot of my code, my
deno.json
deno.json
configuration file, and the error message I encountered.
image.png
image.png
image.png
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Importing local files (streaming large JSON files)
PhatsoPPhatso / help
2y ago
Unexpected behavior while importing npm module
herenicknameHherenickname / help
2y ago