Developer Projects Build Errors

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.

[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?

Hi, @jeckwong :waving_hand: 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

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

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