Git Product home page Git Product logo

Comments (6)

aegooby avatar aegooby commented on May 22, 2024 1

According to this issue and this pull request in the Stripe repository it seems that they are moving towards (or maybe have already completed) removing the dependency on child_process so it can be used in CloudFlare workers, which has API similar to Deno with regards to Stripe according to the maintainers. It seems the only thing left is Node http/https either being polyfilled or converted to use fetch() instead.

I am uneducated on the process of converting modules to Deno, but seeing as the Stripe package is important to my projects I am willing to help out with the porting if needed.

from esm.sh.

ije avatar ije commented on May 22, 2024

stripe is using the child_process that is not supported by deno currently

from esm.sh.

talentlessguy avatar talentlessguy commented on May 22, 2024

still happens on v47

Check file:///tmp/test.ts
error: TS2439 [ERROR]: Import or export declaration in an ambient module declaration cannot reference module through relative module name.
    import * as stream from '/v47/node:stream';
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v47/@types/[email protected]/http.d.ts:43:5

TS2439 [ERROR]: Import or export declaration in an ambient module declaration cannot reference module through relative module name.
    import { URL } from '/v47/node:url';
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v47/@types/[email protected]/http.d.ts:44:5

TS2439 [ERROR]: Import or export declaration in an ambient module declaration cannot reference module through relative module name.
    import { Socket, Server as NetServer } from '/v47/node:net';
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v47/@types/[email protected]/http.d.ts:45:5

TS2439 [ERROR]: Import or export declaration in an ambient module declaration cannot reference module through relative module name.
    export * from '/v47/@types/[email protected]/http.d.ts';
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://cdn.esm.sh/v47/@types/[email protected]/http.d.ts:1357:5

from esm.sh.

ije avatar ije commented on May 22, 2024

https://esm.sh/stripe?no-check should work

from esm.sh.

ije avatar ije commented on May 22, 2024

I will check the types transformer

from esm.sh.

talentlessguy avatar talentlessguy commented on May 22, 2024

seems to work fine in v53

feel free to reopen if it persists

from esm.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.