The main attribute in package.json of loglevel 1.6.3 is not correct. It references a directory instead of a file.
Current value:
"main": "lib/loglevel",
Correct value:
"main": "lib/loglevel.js",
With the incorrect value, the loglevel library does not work with webpack (4.39.3). I always get the error Module not found: Error: Can't resolve 'loglevel' in '....' from webpack when trying to use loglevel.
The main attribute in package.json of loglevel 1.6.3 is not correct. It references a directory instead of a file.
Current value:
Correct value:
With the incorrect value, the loglevel library does not work with webpack (4.39.3). I always get the error
Module not found: Error: Can't resolve 'loglevel' in '....'
from webpack when trying to use loglevel.