Response error message seen when clicking the Preview button:
1400 error: Failed to get trusted system token, check your SLAS private client
Cause: Incorrect values in the MRT environment variables SLAS_PRIVATE_CLIENT_ID and SLAS_PRIVATE_CLIENT_SECRET or wrong SLAS private client configuration.
Errors occurred after adding the onContextChange prop
While previewing your site after you added the onContextChange prop to the StorefrontPreview component, you may get error messages or unexpected results.
Cause: There may be an issue with the function called by the onContextChange prop.
Suggested Solution: Remove the onContextChange prop and the function it calls from the StorefrontPreview component. Then preview your site and see if the same issues occur. If they don’t, debug your function to resolve any errors. For example, you can:
Add the onContextChange prop and the function it calls back to the StorefrontPreview component. See Integrate with a Third-Party CMS.
Inspect the network activity while previewing your site and see if the fetch request is sending the expected data.
If you still have issues after removing the onContextChange prop and the function it calls, open a support case.
Other Unexpected Behavior
While previewing your site, content isn’t displayed as expected and none of the above errors occur. For example, prices don’t change based on the values you entered in Storefront Preview.
Cause: It’s possible that you didn’t complete one or more of the prerequisites.
Suggested Solution: Confirm that you’ve completed all of the prerequisites. If you did and you still encounter issues, open a support case.
Node 20 Deprecation
Node 20 has an end-of-life date of April 30, 2026. We strongly recommend that you update your production projects to Node 22 or Node 24 by upgrading to the latest minor version of PWA Kit 3.x. See full details on Node support dates and upgrade steps in Upgrade Node Version.