oracle / oci-typescript-sdk

Oracle Cloud Infrastructure SDK for TypeScript and JavaScript
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdk.htm
Other
68 stars 50 forks source link

Module not found error #249

Open truecode112 opened 8 months ago

truecode112 commented 8 months ago

I added oci-sdk in my typescript project. But I am getting below error. Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib\auth' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib\auth' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib\auth\helpers' Module not found: Error: Can't resolve 'fs' in 'xxx\node_modules\oci-common\lib\auth\helpers' Module not found: Error: Can't resolve 'tls' in 'xxx\node_modules\oci-common\lib\auth'

Anyone help me with above errors

jyotisaini commented 6 months ago

@truecode112 What version of oci-sdk and node js are you using ? Can you remove node_modules from your project and then run npm install ?