Mathieu2301 / TradingView-API

📈 Get real-time stocks from TradingView
1.31k stars 307 forks source link

os.version is not a function / Can't resolve 'os" #230

Open ITOskarWozniak opened 4 months ago

ITOskarWozniak commented 4 months ago

Describe the bug I'm able to run the tests. But not able to create build. This is extension for chrome plugin

To Reproduce N/A - I just installed and was trying to reproduce login exaple

Expected behavior No errors

Screenshots

  1. Firstly getting "Can't resolve 'os'", so fixed it by below

`const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");

module.exports = { plugins: [ new NodePolyfillPlugin() ], }`

Screenshot 2024-02-15 at 13 47 20
  1. After that getting "os.version is not a function" Screenshot 2024-02-15 at 13 54 11

As I see error is comming from this place image

  1. When I stub os.version from above then i'm getting error that "cookies" is undefined image

But in the network tab I can see sessionid & sessionid_sign image

At the end I started to receive below "Capcha check" image

Environment:

Additional context N/A