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

Cannot find module 'color-name-list' #35

Closed
panmona opened this issue May 4, 2018 · 4 comments
Closed

Cannot find module 'color-name-list' #35

panmona opened this issue May 4, 2018 · 4 comments

Comments

@panmona
Copy link

panmona commented May 4, 2018

I want to use this repo in a CLI made with TypeScript so I went ahead and added it via yarn:
yarn add color-name-list

Unfortunately when trying to use it I get the error:
Cannot find module color-name-list
I import it in the following way:
import namedColors from 'color-name-list';

I don't think it's about missing typescript types, that would be a different error.
Do you have an idea what could be causing this?

@meodai
Copy link
Owner

meodai commented May 6, 2018

thats odd. Can you share your code with me?

@panmona
Copy link
Author

panmona commented May 6, 2018

Yes, I'll as soon as I get back to it

@meodai
Copy link
Owner

meodai commented May 6, 2018

I think it has something to do with your setup. I tired it with a on a blank JS with nothing but node 9.0 and it works just fine. Il reopen the issue, it it turns out to be an issue with the JSON file

@meodai meodai closed this as completed May 6, 2018
@panmona
Copy link
Author

panmona commented May 6, 2018

Yeah probably I am doing something wrong, need to try again sometime!

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