# Local Internet-identity front-end build is failing

**URL:** https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876
**Category:** Developers
**Created:** [November 26, 2022, 6:53pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876 "2022-11-26T18:53:35Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [November 27, 2022, 6:06pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/22 "2022-11-27T18:06:38Z")

</div>

Cloned it you can change the visibility again

---

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [November 27, 2022, 6:11pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/23 "2022-11-27T18:11:10Z")

</div>

Which version of dfx are you using?

Above dfx solution works for \>= 0.12.0

For dfx \< 0.12.0 the solution is the following

```auto
    "internet_identity": {
      "type": "custom",
      "candid": "internet_identity.did",
      "wasm": "internet_identity.wasm",
      "build": "bash -c 'test -f internet_identity.wasm || curl -sSL https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm -o internet_identity.wasm; test -f internet_identity.did || curl -sSL https://raw.githubusercontent.com/dfinity/internet-identity/main/src/internet_identity/internet_identity.did -o internet_identity.did'",
      "remote": {
        "candid": "internet_identity.did",
          "id": {
            "ic": "rdmx6-jaaaa-aaaaa-aaadq-cai"
          }
        }
      }
	},

```

---

<div class="post-metadata">

### Author: ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)
#### Post date: [November 27, 2022, 6:18pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/24 "2022-11-27T18:18:41Z")

</div>

I’m currently using 0.12.1

---

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [November 27, 2022, 6:22pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/25 "2022-11-27T18:22:29Z")

</div>

It doesn’t work I think because you have an hardcoded local canister ID for II in your `webpack.config.js`

```auto
new webpack.EnvironmentPlugin({
      NODE_ENV: 'development',
      DTC_CANISTER_ID: canisters["dtc"],
      II_URL : isDevelopment ?
      "http://localhost:8000?canisterId=rwlgt-iiaaa-aaaaa-aaaaa-cai#authorize" :
      "https://identity.ic0.app/#authorize",
    }),

```

Update `http://localhost:8000?canisterId=rwlgt-iiaaa-aaaaa-aaaaa-cai#authorize` with the effective canister ID or `process.env.INTERNET_IDENTITY_CANISTER_ID` should do the trick.

---

<div class="post-metadata">

### Author: ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)
#### Post date: [November 27, 2022, 6:49pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/26 "2022-11-27T18:49:04Z")

</div>

You were right! i got everything up and running with no error messages in neither the CLI console nor the browser console. Thanks for the help 🙏🏾 🙏🏾 🙏🏾

---

<div class="post-metadata">

### Author: ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)
#### Post date: [November 27, 2022, 6:57pm UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/27 "2022-11-27T18:57:17Z")

</div>

Super cool, my pleasure! Have fun hacking 👍

---

<div class="post-metadata">

### Author: ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)
#### Post date: [November 28, 2022, 8:02am UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/28 "2022-11-28T08:02:13Z")

</div>

> [@Jesse](#):
>
> instead of the Internet identity UI, I’m seeing this:
> 
> ![Screen Shot 2022-11-27 at 8.02.33 AM](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/3/30709bb3bb9e1de3e1b4e0ae7b5800a8261c2439.jpeg)

Just FYI: this is the frontend of a cycles wallet. If you go to `$(dfx identity get-wallet --network ic).ic0.app` you should see the same interface

---

<div class="post-metadata">

### Author: ![Jesse](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jesse/32/37836_2.png) [@Jesse](https://forum.dfinity.org/u/Jesse)
#### Post date: [November 28, 2022, 8:25am UTC](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876/29 "2022-11-28T08:25:17Z")

</div>

Thank you @Vivienne for providing more context

[Previous page](https://forum.dfinity.org/t/local-internet-identity-front-end-build-is-failing/16876.md?page=1)
