We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
__dirname
I'm pretty sure this is a bug, but I didn't see a bug report issue so I opened a feature request instead.
I'm getting this error:
Uncaught ReferenceError: __dirname is not defined
// index.ts import { Hono } from "hono"; const app = new Hono(); console.log(__dirname); export default app
and my wrangler.toml:
wrangler.toml
main = "index.ts" compatibility_date = "2024-12-22" compatibility_flags = ["nodejs_compat"]
__dirname should output the directory that the file is currently in, similar to import.meta.dir.
import.meta.dir
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the solution
I'm pretty sure this is a bug, but I didn't see a bug report issue so I opened a feature request instead.
I'm getting this error:
Minimal reproduction:
and my
wrangler.toml
:Expected behavior
__dirname
should output the directory that the file is currently in, similar toimport.meta.dir
.The text was updated successfully, but these errors were encountered: