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.

expand local variables not working.

See original GitHub issue

running into an issue with expanding local variables inside an env file. working in v9.0.3 with this setup but seems to fail once I’ve moved over to a new CRA with env-cmd version 10.1.0

Request URL: http://localhost:5000/$REACT_APP_API_ENV_ORIGIN/

.env file:

REACT_APP_API_ENV_ORIGIN=someAPIURL.com
REACT_APP_API_ENV=$REACT_APP_API_ENV_ORIGIN

package.json:

  "scripts": {
    "build:integration": "env-cmd -f .env.integration craco build"
   }

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
nkrulcommented, Mar 10, 2021
1reaction
ryanfitzercommented, Aug 21, 2020

This would be a great feature.

@GeorgiosP Just tried this on v9.0.3 and the var was not expanded, so it may be up the tool chain somewhere. Not sure about CRA, but Next.js does this out-of-the-box.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio 2015 Debugging: Can't expand local variables?
I'm trying to do this in 2015 now, but when I hover over a variable, the box that shows up only says "(local...
Read more >
Variables not expanding correctly in application path in QOS ...
Hi, I'm trying to use GPO to marking packets for needed programs. I used Windows 10 21H2 Pro in AD environment. And what...
Read more >
Can't expand local variables in web site project
After updating to 15.7.1 VS pro will no longer expand variables when setting a breakpoint. * Creating a new ASP.net Web site (Razor...
Read more >
Setlocal - Local variables - Windows CMD - SS64.com
DisableDelayedExpansion Expand variables at parse time rather than at execution time. ... Although global variables are easy to work with they are not...
Read more >
Variables in batch file not being set when inside IF?
The following example demonstrates the problem with immediate variable expansion: set VAR=before if "%VAR%" == "before" ( set VAR=after if ...
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