grammyjs / i18n

Internationalization for grammY powered by Fluent.
https://grammy.dev/plugins/i18n
MIT License
30 stars 6 forks source link

Not compatible with cloudflare workers #42

Closed hotrush closed 1 year ago

hotrush commented 1 year ago

Filesystem is not accessible at cloudflare workers, deploy command generates lot of errors like that:

✘ [ERROR] Could not resolve "path"

    node_modules/which/which.js:5:21:
      5 │ const path = require('path')
        ╵                      ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

Adding node_compat = true doesn't help.

Any approach to fix that?

rojvv commented 1 year ago

Can you show us the full stack trace?

hotrush commented 1 year ago

@roj1512 sure, this is the output from wrangler deploy

✘ [ERROR] Could not resolve "net"

    node_modules/@deno/shim-deno/dist/deno/internal/Conn.js:17:22:
      17 │ const net_1 = require("net");
         ╵                       ~~~~~

  The package "net" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js:33:21:
      33 │ const fs_1 = require("fs");
         ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js:34:37:
      34 │ const os_1 = __importDefault(require("os"));
         ╵                                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "events"

    node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js:9:102:
      9 │ ...EventTarget = (_b = require("events").EventTarget) !== null && _...
        ╵                                ~~~~~~~~

  The package "events" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "tty"

    node_modules/@deno/shim-deno/dist/deno/stable/functions.js:6:20:
      6 │ var tty_1 = require("tty");
        ╵                     ~~~~~

  The package "tty" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "url"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/chdir.js:8:22:
      8 │ const url_1 = require("url");
        ╵                       ~~~~~

  The package "url" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/chmodSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/chownSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/close.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "net"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/connect.js:5:22:
      5 │ const net_1 = require("net");
        ╵                       ~~~~~

  The package "net" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "tls"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/connectTls.js:5:22:
      5 │ const tls_1 = require("tls");
        ╵                       ~~~~~

  The package "tls" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js:31:32:
      31 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFileSync.js:31:32:
      31 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasync.js:6:23:
      6 │ const util_1 = require("util");
        ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fdatasyncSync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fstat.js:29:23:
      29 │ const util_1 = require("util");
         ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fstatSync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fsync.js:6:23:
      6 │ const util_1 = require("util");
        ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/fsyncSync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncate.js:6:23:
      6 │ const util_1 = require("util");
        ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/ftruncateSync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/inspect.js:28:34:
      28 │ const util = __importStar(require("util"));
         ╵                                   ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js:8:37:
      8 │ const os_1 = __importDefault(require("os"));
        ╵                                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "process"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/kill.js:9:42:
      9 │ const process_1 = __importDefault(require("process"));
        ╵                                           ~~~~~~~~~

  The package "process" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/linkSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "net"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/listen.js:5:22:
      5 │ const net_1 = require("net");
        ╵                       ~~~~~

  The package "net" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "tls"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/listenTls.js:5:22:
      5 │ const tls_1 = require("tls");
        ╵                       ~~~~~

  The package "tls" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js:31:32:
      31 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/lstatSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js:5:27:
      5 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDir.js:7:21:
      7 │ const os_1 = require("os");
        ╵                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js:5:21:
      5 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempDirSync.js:7:21:
      7 │ const os_1 = require("os");
        ╵                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js:5:21:
      5 │ const os_1 = require("os");
        ╵                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFile.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js:5:21:
      5 │ const os_1 = require("os");
        ╵                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/makeTempFileSync.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdir.js:8:27:
      8 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/mkdirSync.js:31:32:
      31 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js:8:21:
      8 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/open.js:9:23:
      9 │ const util_1 = require("util");
        ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/openSync.js:8:21:
      8 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js:5:23:
      5 │ const util_1 = require("util");
        ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/read.js:6:21:
      6 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readDir.js:8:27:
      8 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readDirSync.js:8:21:
      8 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readFile.js:8:27:
      8 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readFileSync.js:8:21:
      8 │ const fs_1 = require("fs");
        ╵                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readLink.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readLinkSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFile.js:8:27:
      8 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/readTextFileSync.js:31:32:
      31 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/realPath.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/realPathSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/remove.js:5:27:
      5 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/removeSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/rename.js:5:27:
      5 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/renameSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "dns"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/resolveDns.js:8:38:
      8 │ const dns_1 = __importDefault(require("dns"));
        ╵                                       ~~~~~

  The package "dns" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "child_process"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js:43:48:
      43 │ const child_process_1 = __importDefault(require("child_process"));
         ╵                                                 ~~~~~~~~~~~~~~~

  The package "child_process" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js:44:37:
      44 │ const fs_1 = __importDefault(require("fs"));
         ╵                                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js:45:37:
      45 │ const os_1 = __importDefault(require("os"));
         ╵                                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "url"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js:46:38:
      46 │ const url_1 = __importDefault(require("url"));
         ╵                                       ~~~~~

  The package "url" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "events"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/run.js:47:25:
      47 │ const events_1 = require("events");
         ╵                          ~~~~~~~~

  The package "events" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "net"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/shutdown.js:5:22:
      5 │ const net_1 = require("net");
        ╵                       ~~~~~

  The package "net" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/stat.js:8:27:
      8 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/statSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/symlink.js:28:32:
      28 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/symlinkSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/truncate.js:31:32:
      31 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/truncateSync.js:31:32:
      31 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js:5:27:
      5 │ const promises_1 = require("fs/promises");
        ╵                            ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/watchFs.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "util"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/write.js:29:23:
      29 │ const util_1 = require("util");
         ╵                        ~~~~~~

  The package "util" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFile.js:31:32:
      31 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/writeFileSync.js:8:21:
      8 │ const os_1 = require("os");
        ╵                      ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/writeSync.js:28:32:
      28 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs/promises"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFile.js:31:32:
      31 │ const fs = __importStar(require("fs/promises"));
         ╵                                 ~~~~~~~~~~~~~

  The package "fs/promises" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/stable/functions/writeTextFileSync.js:31:32:
      31 │ const fs = __importStar(require("fs"));
         ╵                                 ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "os"

    node_modules/@deno/shim-deno/dist/deno/stable/variables/build.js:28:32:
      28 │ const os = __importStar(require("os"));
         ╵                                 ~~~~

  The package "os" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js:6:23:
      6 │ const path_1 = require("path");
        ╵                        ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "url"

    node_modules/@deno/shim-deno/dist/deno/stable/variables/mainModule.js:7:22:
      7 │ const url_1 = require("url");
        ╵                       ~~~~~

  The package "url" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/@deno/shim-deno/dist/deno/unstable/main.js:8:37:
      8 │ const fs_1 = __importDefault(require("fs"));
        ╵                                      ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/isexe/index.js:1:17:
      1 │ var fs = require('fs')
        ╵                  ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/isexe/mode.js:4:17:
      4 │ var fs = require('fs')
        ╵                  ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "fs"

    node_modules/isexe/windows.js:4:17:
      4 │ var fs = require('fs')
        ╵                  ~~~~

  The package "fs" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Could not resolve "path"

    node_modules/which/which.js:5:21:
      5 │ const path = require('path')
        ╵                      ~~~~~~

  The package "path" wasn't found on the file system but is built into node.
  Add "node_compat = true" to your wrangler.toml file to enable Node.js compatibility.

✘ [ERROR] Build failed with 99 errors:

  node_modules/@deno/shim-deno/dist/deno/internal/Conn.js:17:22: ERROR: Could not resolve "net"
  node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js:33:21: ERROR: Could not resolve "fs"
  node_modules/@deno/shim-deno/dist/deno/internal/fs_flags.js:34:37: ERROR: Could not resolve "os"
  node_modules/@deno/shim-deno/dist/deno/stable/classes/FsFile.js:28:32: ERROR: Could not resolve
  "fs"
  node_modules/@deno/shim-deno/dist/deno/stable/classes/PermissionStatus.js:9:102: ERROR: Could not
  resolve "events"
  ...
KnorpelSenf commented 1 year ago

No grammY plugin has support for CFW, only the core lib can do this so far. We need to add a better build setup to the entire ecosystem, so we basically need to extract some common logic and share it across the repos.

Closing in favour of https://github.com/grammyjs/grammY/issues/372.