Closed manzoorwanijk closed 8 months ago
Hi! import Stripe from 'stripe/worker';
is not a supported way of importing from Stripe. stripe does not export any submodules (see our package.json export map). We do export a different version of the package in worker
environments, but the import shouldn't need changing.
~For the types issues, can you provide more details? I went to https://arethetypeswrong.github.io/?p=stripe%4014.20.0 but am not sure what to look for.~
Ah, I see, the problem is described in https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/FalseCJS.md
Hey @manzoorwanijk
Is the types issue of Masquerading as CJS causing any problems in your integration at the moment?
Is the types issue of Masquerading as CJS causing any problems in your integration at the moment?
No
In that case, we will close this issue and add the investigation of that issue to our backlog
Describe the bug
If you try to use
import Stripe from 'stripe/worker';
, it throws an error,Cannot resolve dependency 'stripe/worker'
There are also some other TS types problems - https://arethetypeswrong.github.io/?p=stripe%4014.20.0
To Reproduce
npm run build
Expected behavior
The module should resolve correctly
Code snippets
OS
macOS
Node version
v18.19.0
Library version
^14.20.0
API version
2023-10-16
Additional context
No response