faisalsami / odoo-xmlrpc

Node.js client library for odoo ERP using xmlrpc.
104 stars 85 forks source link

Module http does not exist in haste module map #18

Open dsk2370 opened 5 years ago

dsk2370 commented 5 years ago

I get this error when trying to launch simulator with this lib

unable to resolve module http from .../xmlrpc/lib/client.js

please help

pantxisto commented 5 years ago

Hello,

I have te same problem. I´m running an Angular project and when start running the console shows this errors:

ERROR in ./node_modules/xmlrpc/lib/client.js Module not found: Error: Can't resolve 'http' in 'C:\Users\jcm\Desktop\Odoo\odoo-app\node_modules\xmlrpc\lib' ERROR in ./node_modules/xmlrpc/lib/server.js Module not found: Error: Can't resolve 'http' in 'C:\Users\jcm\Desktop\Odoo\odoo-app\node_modules\xmlrpc\lib' ERROR in ./node_modules/xmlrpc/lib/client.js Module not found: Error: Can't resolve 'https' in 'C:\Users\jcm\Desktop\Odoo\odoo-app\node_modules\xmlrpc\lib' ERROR in ./node_modules/xmlrpc/lib/server.js Module not found: Error: Can't resolve 'https' in 'C:\Users\jcm\Desktop\Odoo\odoo-app\node_modules\xmlrpc\lib'

Update: After investigate about it I see that this library with angular can have some problems because angular has his own http module and even changing required modules in client.js and server.js angular module haven´t request method, so it would be great an adaption to angular.

Thanks

Cicloqe commented 5 years ago

I have the same problem, did you find a solution?

RaisUpDeWold commented 5 years ago

Me, too