# Using env/config variables not working in import statements

**URL:** <https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182>\
**Category:** Flow JavaScript SDK\
**Tags:** flow-sdk-js\
**Created:** [July 12, 2021, 5:34pm UTC](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182 "2021-07-12T17:34:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Creator](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/creator/32/580_2.png) [@Creator](https://forum.flow.com/u/Creator)\
**Post date:** [July 12, 2021, 5:34pm UTC](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182/1 "2021-07-12T17:34:55Z")

</div>

My config.js file set 3 variables:

```
config()
  .put("accessNode.api", process.env.REACT_APP_ACCESS_NODE)
  .put("challenge.handshake", process.env.REACT_APP_WALLET_DISCOVERY)
  .put("0xAccount", process.env.REACT_APP_ACCOUNT)   

```

However the are not accessible from Import statements in fcl.script or fcl.transaction

```
 fcl.send([
      fcl.script`
        import MyContract from 0xAccount // WILL FAIL -> 0xAccount gives undefined
        pub fun main(): {Address:UInt32} {
            let account = getAccount(0xAccount) // WILL WORK -> 0xAccount gives my env.local value
```

---

<div class="post-metadata">

**Author:** ![kimcodeashian](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/kimcodeashian/32/498_2.png) [@kimcodeashian](https://forum.flow.com/u/kimcodeashian)\
**Post date:** [July 17, 2021, 1:15am UTC](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182/2 "2021-07-17T01:15:16Z")

</div>

Hmm this is interesting, may I ask you what version you’re using for FCL? Pinging @qvvg

---

<div class="post-metadata">

**Author:** ![Creator](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/creator/32/580_2.png) [@Creator](https://forum.flow.com/u/Creator)\
**Post date:** [July 21, 2021, 7:41am UTC](https://forum.flow.com/t/using-env-config-variables-not-working-in-import-statements/2182/3 "2021-07-21T07:41:34Z")

</div>

Hi Kim 🙂  
“@onflow/fcl”: “0.0.73”,  
“@onflow/types”: “0.0.4”

I think something is missing in fcl for switching the variable to the value inside a transaction/script function
