web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Virtual PCF control er...
Power Apps
Answered

Virtual PCF control errors out on Power Pages

(0) ShareShare
ReportReport
Posted on by 23
Hello all! I'm working on a project where I'm adding PCF controls to a Power Pages portal. I've encountered an issue where virtual controls return an error on the portal, here's a screenshot of the error in the console:
 
 
However, when I put the same control together in a standard component, it renders just fine. It seems like the issue is that building the virtual component doesn't package React in with the component in a way that the portal can use. The virtual control works perfectly fine in a model-driven app.
 
I was curious if anyone has any insight on how to solve this issue.
 
Thanks!
I have the same question (0)
  • Verified answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 1 on at
    Hi 
     
    Power Pages portals, operate in a different environment where dependencies like React and ReactDOM may not be readily available or are sandboxed.
    If your PCF control doesn’t bundle its dependencies properly, the portal cannot resolve them, resulting in errors.
     
    Open your PCF control’s pcfconfig.json file and make sure the isolationMode is set to none. This ensures the dependencies are bundled.
    {
      "namespace": "MyNamespace",
      "controlName": "MyControl",
      "isolationMode": "none",
      "properties": {...}
    }

    Run the following commands to build the control with bundled dependencies
    npm install --save react react-dom
    npm install --save-dev webpack-bundle-analyzer
     
    include Webpack configuration
    externals: {
      react: 'React',
      'react-dom': 'ReactDOM'
    }
     
    pls try and let me know. thanks
  • vitalii_hladkyi Profile Picture
    10 on at
    have the same issue, don't know how to fix this((
  • CU27071804-1 Profile Picture
    3 on at
    I have a lookup to aaduser table which throws Internal Server Error on the portal page, works fine in the model-driven app.
     
      - Used ReactSelectLookup PCF as suggested in some forums still the same: works in model-driven app, Internal Server Error on portal.
      - Rebuilt the PCF with pcfconfig (isolation mode none), webpack config (added externals) as suggested here. Still encountering the same error.
     
    Any help appreciated.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard