TradingView-API
TradingView-API copied to clipboard
os.version is not a function / Can't resolve 'os"
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
- Firstly getting "Can't resolve 'os'", so fixed it by below
`const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
module.exports = {
plugins: [
new NodePolyfillPlugin()
],
}`
- After that getting "os.version is not a function"
As I see error is comming from this place
- When I stub os.version from above then i'm getting error that "cookies" is undefined
But in the network tab I can see sessionid & sessionid_sign
At the end I started to receive below "Capcha check"
Environment:
- OS: MacOS
- Node version: v18.17.0
Additional context N/A