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

Use in a Node.js Typescript project -- Could not find a declaration file for module 'getmac' #325

Closed
Homailot opened this issue Nov 19, 2023 · 1 comment

Comments

@Homailot
Copy link

I am trying to import this package into a typescript Node.js project. I have seen the section on the README about editions, but I can't select other editions when importing. I have tried the following, to no avail:

import getMAC from 'getmac';

Results in Could not find a declaration file for module 'getmac'.

import getMAC from 'getmac/source/index.ts';

Results in Cannot find module 'getmac/source/index.ts' or its corresponding type declarations

Do you have any suggestions or ideas about why I cannot import this? Thank you.

@balupton
Copy link
Member

this should now be resolved with v6.2.0
7e34b1a#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519

shoutout to my GitHub Sponsors for affording me the time to make this happen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants