Open pchittum opened 3 years ago
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
This issue has been linked to a new work item: W-8868333
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Error while creating work item. No valid build found in GUS!
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Describe the bug When an exception is raised from Apex, and the LWC is being served from the LWC local dev server, there is a difference in treating that exception such that you need different code to properly surface the error in the UI. This was discovered when investigating a PR in the LWC Recipes sample app.
To Reproduce Steps to reproduce the behavior:
Run that component in local lwc server. The error is surfaced in one way.
Deploy component to an org. In that instance, the error surfaced contains the message intended from Apex.
Expected behavior The shape of the object returned by an error should be identical between LWC when hosted in an org, and when it is hosted in the local server.
Desktop (please complete the following information):