Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Commerce forum / How would I roll back ...
Commerce forum
Unanswered

How would I roll back my Commerce SDK?

Posted on by 281

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

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans