I don't know if it's my mistake or the api in case it's mine the mistake plus examples would help
TypeError: hypixel_api_reborn_1.Bid is not a constructor
at Object.<anonymous> (C:\Users\minec\Documents\GitHub\Auctions Flipper\index.js:6:11)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47
npm ERR! code 1
npm ERR! path C:\Users\minec\Documents\GitHub\Auctions Flipper
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c "node index.js"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\minec\AppData\Local\npm-cache\_logs\2021-01-20T18_56_07_944Z-debug.log
import { Bid } from 'hypixel-api-reborn';
//import { API_KEY } from './config.json';
//const hypixel = new Client(API_KEY);
const bid = new Bid({
amount: 1,
//at: Date(),
//timestamp: Date.now()
})
console.log(bid)
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"strict": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}