question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Environment variables are not working

See original GitHub issue

process.env.<VAR> type statements are not working in both the storybook static version and the dev server. Storybook version is 2.19.0.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thani-shcommented, Sep 27, 2016

There’s also an EnvironmentPlugin which comes bundled with webpack https://github.com/webpack/docs/wiki/list-of-plugins#environmentplugin

0reactions
dzotoscommented, Sep 12, 2017

@mnmtanish worked for me. thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 reasons why your .env environment variables don't work
5 reasons why your .env environment variables don't work · 1. Your framework doesn't automatically load .env files. · 2. You added or...
Read more >
Problems with Environment Variables
Environment variable is not set. If the error message states that the environment variable is not set, IT MEANS PRECISELY THAT ! The...
Read more >
New Environment Variables Not Working in Windows 10
I am trying to put in paths to my php install and php composer. Here's what I got: C:\xampp\php\;. C:\xampp\htdocs\bill-dev-site\;.
Read more >
Windows 10 System environment variables don't stick
I Search for and open "View advanced system settings". · Click the "Environment Variables" button. · Locate "Path" under the System variables ......
Read more >
dotenv file is not loading environment variables - Stack Overflow
How about use require('dotenv').config({path:__dirname+'/./../../.env'}) ? Your problem seems to be the execution path.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found