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

Notifications

Announcements

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)
  • 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.
  • vitalii_hladkyi Profile Picture
    10 on at
    have the same issue, don't know how to fix this((
  • Verified answer
    SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard