# Developer Projects Build Errors

**URL:** <https://community.hubspot.com/t/developer-projects-build-errors/119055>\
**Category:** CMS Development\
**Tags:** local-development, javascript, professional, starter\
**Created:** [October 24, 2024, 3:14am UTC](https://community.hubspot.com/t/developer-projects-build-errors/119055 "2024-10-24T03:14:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeckwong](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jeckwong](https://community.hubspot.com/u/jeckwong)\
**Post date:** [October 24, 2024, 3:14am UTC](https://community.hubspot.com/t/developer-projects-build-errors/119055/1 "2024-10-24T03:14:51Z")

</div>

Hello, I’m currently running into issues getting my project changes locally to my HubSpot account. When I do a deployment either via GitHub connections or via CLI, there would be deprecation warnings about SASS 2.0 and then finally an error which would fail the build.

`DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.`

```lia-code-sample
[ERROR]
 Oct 24 2:06:05PM AEDT [gather-manifest-json] Cannot read properties of undefined (reading 'source') 
[ERROR]
 Oct 24 2:06:05PM AEDT file:///tmp/cms_c3YYUL/cms-js-build/dist/run.mjs:838 
[ERROR]
 Oct 24 2:06:05PM AEDT manifests[key] = JSON.parse(bundle[fileName].source); 
[ERROR]
 Oct 24 2:06:05PM AEDT ^ 
[ERROR]
 Oct 24 2:06:05PM AEDT 
[ERROR]
 Oct 24 2:06:05PM AEDT TypeError: Cannot read properties of undefined (reading 'source') 
[ERROR]
 Oct 24 2:06:05PM AEDT at Object.writeBundle (file:///tmp/cms_c3YYUL/cms-js-build/dist/run.mjs:838:52) 
[ERROR]
 Oct 24 2:06:05PM AEDT at file:///tmp/cms_c3YYUL/cms-js-build/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25544:40 
[ERROR]
 Oct 24 2:06:05PM AEDT at async Promise.all (index 0) 
[ERROR]
 Oct 24 2:06:05PM AEDT at async PluginDriver.hookParallel (file:///tmp/cms_c3YYUL/cms-js-build/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25472:9) 
[ERROR]
 Oct 24 2:06:05PM AEDT at async file:///tmp/cms_c3YYUL/cms-js-build/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:26792:13 
[ERROR]
 Oct 24 2:06:05PM AEDT at async catchUnfinishedHookActions (file:///tmp/cms_c3YYUL/cms-js-build/node_modules/vite/node_modules/rollup/dist/es/shared/node-entry.js:25910:16) 
[ERROR]
 Oct 24 2:06:05PM AEDT at async build (file:///tmp/cms_c3YYUL/cms-js-build/node_modules/vite/dist/node/chunks/dep-b2890f90.js:48085:22) 
[ERROR]
 Oct 24 2:06:05PM AEDT at async buildReactTheme (file:///tmp/cms_c3YYUL/cms-js-build/dist/run.mjs:1981:3) 
[ERROR]
 Oct 24 2:06:05PM AEDT at async file:///tmp/cms_c3YYUL/cms-js-build/dist/run.mjs:2136:1 { 
[ERROR]
 Oct 24 2:06:05PM AEDT code: 'PLUGIN_ERROR', 
[ERROR]
 Oct 24 2:06:05PM AEDT plugin: 'gather-manifest-json', 
[ERROR]
 Oct 24 2:06:05PM AEDT hook: 'writeBundle' 
[ERROR]
 Oct 24 2:06:05PM AEDT } 

```

I’ve done a sanity check and tried redeploying a previous build and get the same issue.  
Was there an update to the build pipeline that caused this issue or am missing something?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 24, 2024, 5:56pm UTC](https://community.hubspot.com/t/developer-projects-build-errors/119055/2 "2024-10-24T17:56:01Z")

</div>

Hi, @jeckwong 👋 Welcome to our community! Thanks for your post. That sounds unexpected, for sure. Let’s see if any of our community experts have a suggestion for you — hey @Jnix284 @alyssamwilie @JuanGomez0818, do you have any tips or additional troubleshooting suggestions for @jeckwong?

Thank you very much for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![jeckwong](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jeckwong](https://community.hubspot.com/u/jeckwong)\
**Post date:** [October 24, 2024, 11:40pm UTC](https://community.hubspot.com/t/developer-projects-build-errors/119055/3 "2024-10-24T23:40:18Z")

</div>

Hi Jaycee, I’ve reached out to the devs on HubSpot’s community Slack and they’ve troubleshooted the issue;  
The solution was moving vite from dependency to devDependency inside package.json

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 25, 2024, 9:27pm UTC](https://community.hubspot.com/t/developer-projects-build-errors/119055/4 "2024-10-25T21:27:47Z")

</div>

Thank you so much for taking the time to share how you got this resolved! 🙌 — Jaycee
