TradingView-API icon indicating copy to clipboard operation
TradingView-API copied to clipboard

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

Open ITOskarWozniak opened this issue 2 years ago • 0 comments

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:

  • OS: MacOS
  • Node version: v18.17.0

Additional context N/A

ITOskarWozniak avatar Feb 15 '24 19:02 ITOskarWozniak