Skip to content

Support for Cloudflare workers API #1252

Open
@jegork

Description

@jegork

Feature Request

I have: searched across the issues and discussions, but did not find any requests.

Introduction

I would like to use the library inside of Cloudflare pages running Astro. Currently, it seems to depend on the util builtin of Node. Cloudflare provides node:util (source) however Cloudflare fails to import the package:

 "10:23:27 [ERROR] Error: No such module \"chunks/node-telegram-bot-api\".\n  imported from \"chunks/_astro_internal-actions_CjU0i2h1.mjs\""

In the Astro docs, it is mentioned that the library should support the node:* syntax, is it possible to support it?

Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions