# Dfx env generation bug?

**URL:** <https://forum.dfinity.org/t/dfx-env-generation-bug/34080>\
**Category:** Command Line Tools\
**Created:** [August 11, 2024, 7:23am UTC](https://forum.dfinity.org/t/dfx-env-generation-bug/34080 "2024-08-11T07:23:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KirillTroiak](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/kirilltroiak/32/39668_2.png) [@KirillTroiak](https://forum.dfinity.org/u/KirillTroiak)\
**Post date:** [August 11, 2024, 7:23am UTC](https://forum.dfinity.org/t/dfx-env-generation-bug/34080/1 "2024-08-11T07:23:02Z")

</div>

### Good day everyone!

I think I’ve run into the bug with dfx env generation: when you create new dfx project with “dfx new {project name}” using Motoko and include Internet Identity as an extra feature, if you remove this part from dfx.json “canisters” section:

```auto
"internet_identity": {
      "candid": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity.did",
      "frontend": {},
      "remote": {
        "id": {
          "ic": "rdmx6-jaaaa-aaaaa-aaadq-cai"
        }
      },
      "type": "custom",
      "wasm": "https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm.gz"
    }

```

Then the project stops generating/updating env at all when you deploy or build your canisters.

Shouldn’t it just remove the II canister from the list of canisters? When I add it back it back, dfx behaves normally again. There are no errors or warnings, the canisters are deploying successfully on the local network, but the env is not updated/created.

using dfx 0.21.0

---

<div class="post-metadata">

**Author:** ![baolongt](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@baolongt](https://forum.dfinity.org/u/baolongt)\
**Post date:** [August 11, 2024, 2:38pm UTC](https://forum.dfinity.org/t/dfx-env-generation-bug/34080/2 "2024-08-11T14:38:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/1/5/15fb5aef84b127b6292d706e308ff3bb064df1a1.png)  
don’t select any thing in here, just hit enter
