Comments (6)
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.
stripe is using the child_process
that is not supported by deno currently
from esm.sh.
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.
https://esm.sh/stripe?no-check should work
from esm.sh.
I will check the types transformer
from esm.sh.
seems to work fine in v53
feel free to reopen if it persists
from esm.sh.
Related Issues (20)
- Use custom node polyfill via `alias` and `external` query
- @observablehq/plot prototypes are missing a method due to skipped side effects
- Support GitHub Gists
- Failed to import - d3
- Failed init cli on NPM HOT 7
- Support importing modules from jsr.io HOT 1
- how to get react profiling version
- Failed to import - basehub/react - shows 500 Internal Server Error. - on commit
- Failed to import - @mui/material HOT 6
- Failed to import - openlayers
- All previously built urls are failing HOT 1
- Question: why don't you use yarn pnp
- Self hosted - 405 Response using the npm.pkg.github.com registry HOT 3
- Wrong `x-typescript-types` for `@babel/parser`
- Failed to import - @headlessui/react HOT 3
- Failed to import - [email protected] (previous version works) HOT 3
- Problem with using Monaco with ESM HOT 2
- Failed to import - Cloudscape components
- Failed to set `react` as external dependency
- Failed to set `@use-gesture/core/action` as external dependency HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esm.sh.