You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: