You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that local folders cannot be accessed in Cloudflare Workers, so I didn't use the loadLocalesDir parameter. I plan to load the translation data directly, but it still results in an error. If I comment out this code, the program runs normally.
const i18n = new I18n<TelegramContext>({
defaultLocale: "zh",
});
`✘ [ERROR] service core:user:main-dev: Uncaught ReferenceError: __dirname is not defined
at null.<anonymous> (index.js:15655:180) in
node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js
at null. (index.js:32:52) in __require2
at null. (index.js:17688:27) in
node_modules/@deno/shim-deno/dist/deno/stable/variables.js
at null. (index.js:32:52) in __require2
at null. (index.js:22538:26) in
node_modules/@deno/shim-deno/dist/deno/stable/functions.js
at null. (index.js:32:52) in __require2
at null. (index.js:22980:18) in node_modules/@deno/shim-deno/dist/deno/stable/main.js
at null. (index.js:32:52) in __require2
at null. (index.js:23018:18) in node_modules/@deno/shim-deno/dist/deno.js
at null. (index.js:32:52) in __require2
✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.`
It should be related to the code below, which I saw in utils.js. const contents = await dntShim.Deno.readFile((0, deps_js_1.join)(path, excludeRoot));
The text was updated successfully, but these errors were encountered:
We are going to migrate the entire grammY ecosystem to https://jsr.io which will give us full CFW support for all plugins for free. This is a lot of work so it will take some time, but it is going to happen.
This is tracked in grammyjs/grammY#559. I will close this issue in favour of that one, as we are not going to migrate our build system twice just to fix this sooner.
I know that local folders cannot be accessed in Cloudflare Workers, so I didn't use the loadLocalesDir parameter. I plan to load the translation data directly, but it still results in an error. If I comment out this code, the program runs normally.
`✘ [ERROR] service core:user:main-dev: Uncaught ReferenceError: __dirname is not defined
node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js
at null. (index.js:32:52) in __require2
at null. (index.js:17688:27) in
node_modules/@deno/shim-deno/dist/deno/stable/variables.js
at null. (index.js:32:52) in __require2
at null. (index.js:22538:26) in
node_modules/@deno/shim-deno/dist/deno/stable/functions.js
at null. (index.js:32:52) in __require2
at null. (index.js:22980:18) in node_modules/@deno/shim-deno/dist/deno/stable/main.js
at null. (index.js:32:52) in __require2
at null. (index.js:23018:18) in node_modules/@deno/shim-deno/dist/deno.js
at null. (index.js:32:52) in __require2
✘ [ERROR] The Workers runtime failed to start. There is likely additional logging output above.`
It should be related to the code below, which I saw in utils.js.
const contents = await dntShim.Deno.readFile((0, deps_js_1.join)(path, excludeRoot));
The text was updated successfully, but these errors were encountered: