Forum Discussion
ofergalinIsrael
Jun 22, 2024Copper Contributor
workbench.aspx break when clicking "Preview"
On every web part I develop, running in /_layouts/15/workbench.aspx of all tenants I have access to, clicking the preview to debug, causes an error: "Uncaught Error Error: The value for "domElement...
ganeshsanap
Jul 02, 2024MVP
ofergalinIsrael Craig-Pulliam abdul-alhariri
Try this:
- Create a site page in any of your SharePoint site for testing SPFx web part
- After running gulp serve command, instead of using workbench URL, use URL like:
https://contoso.sharepoint.com/sites/MySite/SitePages/TestingPageName.aspx?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js
Similar thread: SPFx workbench crashes when I try to enter "Preview" mode
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
ofergalinIsrael
Jul 02, 2024Copper Contributor
ganeshsanap I know I can do this but there are limitations.
Most My webparts are full page and deployed as app. So, development is best in the workbench.
I found out I can work with it without hitting preview.
I just don't understand why MS can't figure a fi,x for a month now, to a product they brag about as a tool for SPFx.