Closed sunyata0 closed 11 months ago
We just need to provide a web build. This is being tracked at https://github.com/grammyjs/grammY/issues/372. Closing as duplicate.
Hey there Does this have a resolution? Checked the threads and seems build needs to have web version?
Yes. As a temporary workaround, you can use tools like https://bundle.deno.dev/ and pass the raw source code URL from GitHub to it in order to obtain a web build. Or perhaps @PonomareVlad has created such a build? I'm not entirely sure.
Yes, i used @ponomarevlad/grammyjs-conversations
as a temporary solution.
Hi!
I'm running my grammy telegram bot on CFW (Cloudflare Workers) and I would like to use the
@grammyjs/conversations
plugin. However this plugin has an indirect dependency to@deno/shim-deno
thougho-son
. This dependency leads to errors at build time.When I try to deploy my bot with
wrangler deploy
(or to run it locally withwrangler dev
), I have this error:I only tail 3 of the 108 errors, but they all refer to an "Could not resolve" error. The unresolved libs are the following:
They are mostly in the
@deno/shim-deno
package (103 out of 108) but also 3 inisexe
("fs"), 1 ino-son
("util" without s) and 1 inwhich
("path")Of course, I've tried to add
node_compat = true
in the wrangler.toml and the output is the following:Once again I only tail 3 of the 20 errors, but as you can see, only the : "fs/promises" package leads to an error now and all the other errors are gone. And all the 20 errors are in the
@deno/shim-deno
package.Of course I don't need to use "fs" for my use case, because I use the
@grammyjs/storage-supabase
for the storage and we don't have access to the file system in the CFW environment anyway.My question is: will you plan to support the CFW environment for this plugin? If not, is there some workaround we can implement to bypass this issue?
Thank you for your time!