chargebee / chargebee-typescript

Typescript library for the Chargebee API.
https://apidocs.chargebee.com/docs/api?lang=typescript
MIT License
23 stars 15 forks source link

unable to use chargebee typescript due to missing modules #16

Closed tanzeelrana closed 3 years ago

tanzeelrana commented 3 years ago

ERROR in ./node_modules/chargebee-typescript/lib/core.js Module not found: Error: Can't resolve 'http' in '/Users/tanzeel.rehman/Development/chargebee/node_modules/chargebee-typescript/lib'

ERROR in ./node_modules/chargebee-typescript/lib/core.js Module not found: Error: Can't resolve 'https' in '/Users/tanzeel.rehman/Development/chargebee/node_modules/chargebee-typescript/lib'

ERROR in ./node_modules/chargebee-typescript/lib/core.js Module not found: Error: Can't resolve 'os' in '/Users/tanzeel.rehman/Development/chargebee/node_modules/chargebee-typescript/lib'

arminrosu commented 3 years ago

Posting for posterity:

@tanzeelrana it seems like your bundler / tsconfig.json is not configured for node and it's complaining about node's built-in https module.

cb-rakesh commented 3 years ago

Closing this as this doesn't seem to be related to chargebee-typescript package.

ddtch commented 3 years ago

How can I configure it? Have the same issue, using NX

murtaza-farooqi89 commented 1 year ago

i am having the same issue.

che-wavefin commented 1 year ago

Having the same issue, can't run on a CRA project. Has someone figured out how to solve this, what exactly do I need to configure?

=== Edit === I see, this package is not supposed to be used in the FE repo