# Can't sync code to codebase

**URL:** <https://forum.builder.io/t/cant-sync-code-to-codebase/6826>\
**Category:** Visual Editor Help\
**Tags:** visual-editor, nextjs\
**Created:** [November 26, 2024, 4:43pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826 "2024-11-26T16:43:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![richieRich](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@richieRich](https://forum.builder.io/u/richieRich)\
**Post date:** [November 26, 2024, 4:43pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/1 "2024-11-26T16:43:08Z")

</div>

when i try to sync generated code using ‘npx [builder.io](http://builder.io)@latest add 4a03bc2’ to my code base on localhost it doesn’t work and i get a script generated (see image)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/8/8b308f0692738ef70a591dccac562f4018173062.png)

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 26, 2024, 5:39pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/2 "2024-11-26T17:39:09Z")

</div>

Hello @richieRich,

Could you please confirm if you have the dev-tools installed? Also, which SDK and SDK version are you using?

Best regards,

---

<div class="post-metadata">

**Author:** ![richieRich](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@richieRich](https://forum.builder.io/u/richieRich)\
**Post date:** [November 26, 2024, 6:04pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/3 "2024-11-26T18:04:44Z")

</div>

@builder.io/dev-tools@1.1.27

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 26, 2024, 6:09pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/4 "2024-11-26T18:09:11Z")

</div>

Hi @richieRich,

Could you please upgrade the dev-tools package to the latest version by updating to `@builder.io/dev-tools`: `"^1.1.39"` and see if that resolves the issue?

Additionally, I recommend removing the `node_modules` folder and the `package-lock.json` file, then running the `npm install` command to ensure a clean installation. This approach often helps resolve dependency-related issues.

Let me know if this resolves the problem or if further assistance is needed.

Thanks,

---

<div class="post-metadata">

**Author:** ![richieRich](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@richieRich](https://forum.builder.io/u/richieRich)\
**Post date:** [November 27, 2024, 1:18pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/5 "2024-11-27T13:18:13Z")

</div>

I updated to 1.1.38 because 1.1.39 was causing errors. I have removed node modules and run npm install. I still cannot sync the generated code. i have dev tools available and can register components etc.

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 27, 2024, 3:28pm UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/6 "2024-11-27T15:28:25Z")

</div>

Hello @richieRich,

Could you please provide a screen recording or a minimal reproduction Git repository so we can try to reproduce this issue on our end?

Thanks,

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 29, 2024, 10:52am UTC](https://forum.builder.io/t/cant-sync-code-to-codebase/6826/7 "2024-11-29T10:52:13Z")

</div>

Hello @richieRich,

Feel free to let us know if this is still an issue.

Thanks,
