We have recently updated our Commerce SDK using the following command:
yarn msdyn365 update-version sdk
After running this update, we are no longer able to use our local host to preview theme changes for Site Builder locally. We are getting the below error:
{"name":"SyntaxError","message":"Unexpected token < in JSON at position 0","stack":["SyntaxError: Unexpected token < in JSON at position 0"," at JSON.parse (<anonymous>)"," at Object.PageContractApiService [as parsePayload] (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\src\\_server\\temp-page-contract-api-service.ts?b778:244:81)"," at _callee9$ (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\src\\_server\\temp-page-contract-api-service.ts?b778:406:16)"," at tryCatch (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:63:15)"," at Generator.invoke [as _invoke] (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:294:1)"," at Generator.next (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:119:1)"," at asyncGeneratorStep (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\@babel\\runtime\\helpers\\esm\\asyncToGenerator.js?c99a:3:1)"," at _next (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\@babel\\runtime\\helpers\\esm\\asyncToGenerator.js?c99a:25:1)"," at processTicksAndRejections (internal/process/task_queues.js:93:5)"],"originalStack":"SyntaxError: Unexpected token < in JSON at position 0\n at JSON.parse (<anonymous>)\n at Object.PageContractApiService [as parsePayload] (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\src\\_server\\temp-page-contract-api-service.ts?b778:244:81)\n at _callee9$ (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\src\\_server\\temp-page-contract-api-service.ts?b778:406:16)\n at tryCatch (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:63:15)\n at Generator.invoke [as _invoke] (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:294:1)\n at Generator.next (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\regenerator-runtime\\runtime.js?2408:119:1)\n at asyncGeneratorStep (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\@babel\\runtime\\helpers\\esm\\asyncToGenerator.js?c99a:3:1)\n at _next (C:\\repos\\Msdyn365.Commerce.Online\\build\\webpack:\\node_modules\\@babel\\runtime\\helpers\\esm\\asyncToGenerator.js?c99a:25:1)\n at processTicksAndRejections (internal/process/task_queues.js:93:5)"}
How could I roll back the updates and are there any insights as to why I may be getting this error?