Hi,
This is a well-known pain point with PCF components inside solution-based Canvas Apps. The "Page Unresponsive" error usually means the browser's main thread is getting blocked. A few specific causes to investigate:
Check the PCF component's init() method first. If it runs a synchronous loop, a heavy DOM operation, or calls an external resource without a timeout, it will freeze the Studio renderer. Solution-based apps load the component in a different context than standalone apps, so issues that stay hidden elsewhere surface here.
Bundle size matters more than you think. Large PCF bundles (anything over ~500KB unminified) cause Studio to hang during load. Run pac pcf build --buildMode release to produce a minified bundle, then reimport the component into the solution. Many developers test with debug builds and never notice the size.
Check for circular dependencies in your manifest. If your control.xml references libraries or resources that conflict with what the solution already loads, Studio enters a resolution loop. Open the solution's component library and confirm no duplicate control names exist.
Specific things to try, in order:
- Open the PCF project, run
npm run build -- --buildMode release, then use pac solution add-reference to re-add the built component. Import a fresh managed copy into a dev environment.
- Open your browser's DevTools console before adding the component to the screen. Watch for JavaScript errors or infinite network requests. That narrows down whether the problem is in init(), updateView(), or a dependency.
- Test the PCF in isolation using the PCF test harness (
npm start watch) to confirm it loads without errors outside of Studio.
- If the component uses
context.webAPI or context.navigation, those APIs behave differently inside solution Canvas Apps versus model-driven forms. Wrap those calls in try/catch with fallbacks.
- Check if your environment has the "Code components for canvas apps" feature flag enabled in the Power Platform Admin Center under Settings > Features. If it's partially enabled or in an inconsistent state, Studio behaves exactly as you describe.
One more thing worth checking: if the component was built against an older version of the PCF framework, update your project references. Run npm install @microsoft/powerplatform-dataverse-service-client@latest and rebuild.
Thank you!
Proud to be a Super User!
📩 Need more help?
✔️ Don’t forget to Accept as Solution if this guidance worked for you.
💛 Your Like motivates me to keep helping