twitchtv / node-apicalypse

The apicalypse query language client for nodejs
MIT License
86 stars 10 forks source link

fix: Cannot access 'axiosInstance' before initialization. #38

Closed vynxc closed 3 months ago

summerkiflain commented 3 months ago

@krazyjakee I don't think this is going to solve the problem, we may have to move axios.create() line no.5 to either inside request function or constructor function.

Let me know if that seems better, I'll create a PR after testing suggested change.

krazyjakee commented 3 months ago

Ideally it would be in constructor

Better to have an actual test for this too