# Importing from a local file vs. address

**URL:** <https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531>\
**Category:** 🏄🏻‍♀️ Cadence\
**Created:** [March 21, 2021, 5:18pm UTC](https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531 "2021-03-21T17:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://forum.flow.com/u/nick)\
**Post date:** [March 21, 2021, 5:18pm UTC](https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531/1 "2021-03-21T17:18:14Z")

</div>

Currently, during development, I have to import from local files; e.g.:

```
import NonFungibleToken from "../contracts/NonFungibleToken.cdc"

```

But this causes errors during deployment. The workaround I currently have is:

```
import NonFungibleToken from 0x631e88ae7f1d7c20

```

But this causes errors during development (with the VSCode extension, for example).

Is there something I’m missing? Do I need to change every file I write every time I deploy to testnet?

---

<div class="post-metadata">

**Author:** ![sideninja](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/sideninja/32/363_2.png) [@sideninja](https://forum.flow.com/u/sideninja)\
**Post date:** [March 22, 2021, 2:31pm UTC](https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531/2 "2021-03-22T14:31:36Z")

</div>

Hi @nick I advise you to use Flow CLI deploy funcionality. You can read more about it here: [Deploy a Flow Project - Flow Documentation](https://docs.onflow.org/flow-cli/deploy-project-contracts/).

It will allow you to deploy contracts with a single command `flow project deploy` and to define import that will work in IDE.

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://forum.flow.com/u/nick)\
**Post date:** [March 22, 2021, 5:22pm UTC](https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531/3 "2021-03-22T17:22:30Z")

</div>

Got it, thanks!

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://forum.flow.com/u/nick)\
**Post date:** [March 22, 2021, 6:40pm UTC](https://forum.flow.com/t/importing-from-a-local-file-vs-address/1531/4 "2021-03-22T18:40:27Z")

</div>

@sideninja Btw, how does this work with transactions?
