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
Hi there, I'm getting the following error while trying to build a bot on Cloudflare after having installed the conversations plugin:
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [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. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Build failed with 20 errors:
node_modules/@deno/shim-deno/dist/deno/stable/functions/chmod.js:28:32: ERROR: Could not
resolve "fs/promises"
node_modules/@deno/shim-deno/dist/deno/stable/functions/chown.js:28:32: ERROR: Could not
resolve "fs/promises"
node_modules/@deno/shim-deno/dist/deno/stable/functions/copyFile.js:31:32: ERROR: Could not
resolve "fs/promises"
node_modules/@deno/shim-deno/dist/deno/stable/functions/link.js:28:32: ERROR: Could not
resolve "fs/promises"
node_modules/@deno/shim-deno/dist/deno/stable/functions/lstat.js:31:32: ERROR: Could not
resolve "fs/promises"
...
There'a a quick workaround, just create a local version of it. You can copy the relevant parts from o-son package and grammy conversations locally, hook them up, get rid of the deno stuff, you're good to go.
Hi there, I'm getting the following error while trying to build a bot on Cloudflare after having installed the
conversations
plugin:My
package.json
dependencies:From the looks of it
o-son
has@deno/shim-deno
as a dependency and it all breaks down from there.My
wrangler.toml
already has thenode_compat = true
andcompatibility_date = "2023-01-16"
like noted here: https://grammy.dev/hosting/cloudflare-workers-nodejsAny hints on how to approach this would be very appreciated, thanks.
The text was updated successfully, but these errors were encountered: