I got a Locker Service error message on SharinPix components. What should I do?

If you encounter an error message similar to the following when trying to access a SharinPix component, this may be related to the Lightning Locker API Version in your organization not being compatible with the SharinPix component's API version.

Action failed: ltng:require$controller$init [$A.lockerService.isLockerNextEnabledForComponent is not a function. (In '$A.lockerService.isLockerNextEnabledForComponent(c)', '$A.lockerService.isLockerNextEnabledForComponent' is undefined)]

Please verify if SharinPix Sync Setting is active

The workaround to avoid such mismatch is to, first, upgrade your SharinPix package.

If the new package does not resolve the issue then, another workaround is to temporarily change the Lightning Locker API Version to a previous version number.

To do so, follow the steps below:

  1. From the Setup , search for Session Settings.

  2. On the Session Settings page, look for Lightning Locker API Version and change the API version to the previous version number.

circle-exclamation

Last updated

Was this helpful?