Closed tanzeelrana closed 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.
Closing this as this doesn't seem to be related to chargebee-typescript package.
How can I configure it? Have the same issue, using NX
i am having the same issue.
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
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'