Closed jeffwillette closed 4 years ago
Looking into this more, but not seeing where the issue could be. Other than locking things down to winston 3.1.0, which could be done.
Seeing this issue too, editing the package.json to set the winston version to 3.1.0
resolves the issue for me.
I can submit a PR if you'd like.
Also I think it would be wise to include npm's package-lock.json too (I can do that too if you want).
Lastly, maybe a more lightweight library (such as https://www.npmjs.com/package/debug) could be considered in-place of winston, unless node-client is making active use of winston's advanced features. (I can try to make a PR for that too if you wish so (:).
Cheers !
Can't say for certain (@billyvg ?) but I think winston was chosen because it can write to file. If this new package could support that, then maybe? But perhaps locking winston to 3.1.0 for now would be best.
The repo manages things with yarn, so the yarn lock file should manage this
Alright, will submit a PR with the winston locked version and the yarn.lock file.
edit: Oh it seems the repo is using lerna, so I guess the top-level yarn.lock file is being used.
Yeah I think winston was chosen so that we could use different transports
I am using a node plugin https://github.com/mhartington/nvim-typescript which requires the node host. when I use one of the functions there I get the following error in the node log...
It seems someone else has seen the error as well in #154. It looks like #139 is probably the same issue too. I looked into the library where this is coming from and there also seems to be some issues there https://github.com/winstonjs/winston/issues/1591 and https://github.com/winstonjs/winston/issues/1577. I looked through the files a little bit here but I cannot see the exact reason why this is happening in neovim's node client.
I haven't been using node for a while and I just updated everything to dust off an old project when I ran into this error. Does anyone see why this would be happening?
If I use the chrome debugger I run into the following console error, I am unsure if it is related or not...