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

[Bug]: no constuctor? #1

Closed
1 task done
dgudim opened this issue Sep 11, 2022 · 2 comments
Closed
1 task done

[Bug]: no constuctor? #1

dgudim opened this issue Sep 11, 2022 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@dgudim
Copy link

dgudim commented Sep 11, 2022

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

✏ Description

basically can't initialize DKRCommands, it says

This expression is not constructable.
  Type 'typeof import(".../node_modules/dkrcommands/dist/index")' has no construct signatures.

my import is as follows:

import DKRCommands from "dkrcommands"

👟 Reproduction steps

just npm install dkrcommands and paste basic example from documentation

🔢 DKRCommands version

1.0.0-beta.1

💻 Operating system

Linux

🔢 Node.js version

18.9.0

👀 Expected behavior

works

😥 Actual behavior

doesn't work

📝 Relevant log output

No response

@dgudim dgudim added the bug Something isn't working label Sep 11, 2022
@karelkryda karelkryda added the documentation Improvements or additions to documentation label Sep 11, 2022
@karelkryda
Copy link
Member

Hello,
I haven't tested all parts of the documentation yet, and I apologize for this error.
Correctly you should use:

import { DKRCommands } from "dkrcommands";

I will fix this in the documentation immediately.

Thank you for reporting this bug

@dgudim
Copy link
Author

dgudim commented Sep 11, 2022

Thanks, but i think i just copied it wrongly somehow or replaced the wokcommands import

import WOKCommands from 'wokcommands'

with

import DKRCommands from 'dkrcommands'

without a second thought
anyway, it works now, closing the issue

@dgudim dgudim closed this as completed Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants