Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / How would I roll back ...
Commerce forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

How would I roll back my Commerce SDK?

Posted on by 287

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?

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,917 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans