-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with dotenv anymore. #705
Comments
There shouldn't be. What's your environment configuration related to debug? |
@Qix- I am using babel with typescript.
I am running it with babel-node:
|
Okay but I mean what specifically isn't working? |
I meant by "doesn't work" that it doesn't print the message. |
Right, so what is |
It is set to When I run it with Note that I am using this library for a while now, but it stopped working since today when I updated it to the latest version. |
Then you need to open a ticket with them; there's nothing I can do about that. |
@Qix- I think you closed the issue prematurely. It is a |
@botond-veress then that means debug has stopped accepting the |
@Qix- It is. That's why I opened the issue. |
I'm not sure how out of many millions of downloads per week you're the only one facing the issue that |
@botond-veress it works for me. import dotenv from 'dotenv'
const env = dotenv.config()
console.dir(env.parsed) // <<<<< should include `DEBUG: '*'` from env file, for example
console.dir(env.error) // <<<<< is it `undefined`?
const debug = require('debug')
const log = debug('app')
log('Something') |
👋 maintainer of dotenv here. from what I was able to reproduce in motdotla/dotenv#398 dotenv is working, debug is working, but mixing together with babel-node seems to not work as expected. if anyone would like to help complete the example in that PR (i.e. make it work), that will help identify which package, if any, needs an update ❤️ I'm also open to any other fully re-produceable examples (i.e. not code snippets in comments 😸) |
Thanks for checking in @maxbeatty :) |
@xamgore I'd suggest using |
This is still an issue. Here I was thinking I was the only one having the issue till I found this thread. |
This thread has nothing actionable. Please take it to the appropriate channels. |
The following code snippet works with the version
3.2.6
but it doesn't work with4.1.1
.I've checked the 4.x change logs but I couldn't find anything related to this.
The text was updated successfully, but these errors were encountered: