Skip to content

Deployment issue with cloudflare package #2662

@Cavdy

Description

@Cavdy

Confirm this is a Typescript library issue and not an underlying Cloudflare API issue

  • This is an issue with the Typescript library

Describe the bug

I installed the npm package and used it in the code but I deploy to digitalocean app platform, I get this error you must import 'cloudflare/shims/node' before importing anything else from cloudflare, after importing at the top of the entry file, I get this error can't import 'cloudflare/shims/node' after import 'cloudflare/shims/node'

To Reproduce

install in a nodejs project
deploy to digitalocean app platform

Code snippets

OS

macos

Runtime version

Typescript 5.7.3

Library version

v4.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions