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?