stoqey / ib

Interactive Brokers TWS/IB Gateway API client library for Node.js (TS)
https://stoqey.github.io/ib-doc/
MIT License
206 stars 47 forks source link

TypeError: path.resolve is not a function #184

Open calelloa opened 1 year ago

calelloa commented 1 year ago

I am trying to use the api in a nextjs project and this error appears.

I am not sure if I can use this api to obtain information of IB using IB gateway.

Thanks.

cmmartin commented 8 months ago

This is a node.js library. It's meant to be run on a server not a browser. You can use it in nextjs but only in server side code (api routes or getServerSideProps, etc)