Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class can't work use function for now #1

Closed
CilginSinek opened this issue Jan 18, 2024 · 0 comments
Closed

Class can't work use function for now #1

CilginSinek opened this issue Jan 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@CilginSinek
Copy link
Owner

File:

import axios from 'axios';
import steamUser from 'steam-profile-api';

const steamHtml = await axios.get("https://steamcommunity.com/id/CilginSinek").then(res => res.data);

const steam = new steamUser(steamHtml);

console.log(steam.getStatus());

Error:

file:///D:/Projects/hebele/hebele.mjs:6
const steam = new steamUser(steamHtml);
              ^

TypeError: steamUser is not a constructor
    at file:///D:/Projects/hebele/hebele.mjs:6:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

fix class

@CilginSinek CilginSinek added the bug Something isn't working label Jan 18, 2024
@CilginSinek CilginSinek self-assigned this Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant