T
TanStack4mo ago
stormy-gold

`__filename is not defined` (Cloudflare Workers)

Anybody got any idea on how to investigate the error I receive w.r.t.:
{"stack":"ReferenceError: __filename is not defined\n at import_meta_url.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2959:55)\n at __init (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2929:60)\n at ../../node_modules/.pnpm/wrangler@4.14.1/node_modules/wrangler/wrangler-dist/cli.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:80439:5)\n at __require2 (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/chunk-OL46QLBJ.js?v=c86f4689:21:50)\n at http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:155875:16","message":"__filename is not defined"}
{"stack":"ReferenceError: __filename is not defined\n at import_meta_url.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2959:55)\n at __init (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:2929:60)\n at ../../node_modules/.pnpm/wrangler@4.14.1/node_modules/wrangler/wrangler-dist/cli.js (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:80439:5)\n at __require2 (http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/chunk-OL46QLBJ.js?v=c86f4689:21:50)\n at http://localhost:3000/_build/node_modules/.vinxi/cache/client/deps/wrangler.js?v=c86f4689:155875:16","message":"__filename is not defined"}
Very initial load works. Navigating to a second page fails.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?