You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node-beginner here. I can't find a fix for the error message above, when declaring a new myClient variable.
Error message:
file:///Users/christopher.koch/dev/node_test/test.js:3
const myClient = new Client({ leagueId: 432132 });
^
TypeError: Client is not a constructor
at file:///Users/christopher.koch/dev/node_test/test.js:3:18
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Node.js v20.8.0
Can someone tell me what i'm doing wrong?
The text was updated successfully, but these errors were encountered:
Node-beginner here. I can't find a fix for the error message above, when declaring a new
myClient
variable.Error message:
Can someone tell me what i'm doing wrong?
The text was updated successfully, but these errors were encountered: