winstonjs / winston

A logger for just about everything.
http://github.com/winstonjs/winston
MIT License
23k stars 1.82k forks source link

Can't resolve '../package' winston.js 18:18-39 #1186

Closed abruneau closed 6 years ago

abruneau commented 6 years ago

I'm having this issue when using webpack and Typescipt.

This issue can be solved by changing

winston.version = require('../package').version;

to

winston.version = require('../package.json').version;

Should I make a pull request?

DABH commented 6 years ago

This has been fixed (see #1100 ). Thank you!