node-fetch / fetch-charset-detection

Charset detection and conversion, originally from node-fetch.
MIT License
11 stars 3 forks source link

ESlint does not behave correctly when importing `fetch-charset-detection` #247

Open martinratinaud opened 2 years ago

martinratinaud commented 2 years ago

Hi all,

While using fetch-charset-detection on the Open Terms Archive, importing of this library is causing an eslint error with

error  Unable to resolve path to module 'fetch-charset-detection'  import/no-unresolved

I made a reproducable environment which behaves with the same error

Screen Shot 2022-09-15 at 10 33 07

This does not happen with other packages.

It might because there is no main in the package.json