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 / Solution checker still...
Power Apps
Unanswered

Solution checker still showing javascript "eval" usage errors

(1) ShareShare
ReportReport
Posted on by 293

I pushed a PCF to a solution in my environment using the PAC CLI tool. I followed the guidelines in this link:

Common issues and workarounds (Power Apps Component Framework) - Power Apps | Microsoft Docs

 

I tried both solutions:

1. 'msbuild /p:configuration=Release' 

2. 'npm run build -- --buildMode production' 

 

but I am still seeing 1200+ warnings of this type originating from my PCF.

Issue

Usage of the JavaScript eval function should be limited where possible. The eval function can be a dangerous function as it allows strings to be executed as scripts within the context of the caller. This can be exploited to run malicious code. Eval is also usually slower than other options due to the lack of optimizations of the script text passed to eval. If this error is reported for a Power Apps component framework code component created using CLI tooling, package your control with 'msbuild /p:configuration=Release' or 'npm run build -- --buildMode production' to produce a release build that does not include 'eval' usage.

Does anyone have a solution to this warning? 

I have the same question (0)
  • HerrMueller Profile Picture
    79 on at

    Anyone who resolved this issue? We are also getting this error from solution checker for our PCF controls. We think its coming from the PC-Framework itself.

     

  • Denis_GD Profile Picture
    2 on at

    Hi everyone

    I am also having the same issue with Solution Checker, even though I have used the production build. Does anyone have a solution for this?

     

    Regards

  • RodrigoGroener Profile Picture
    2 on at

    We are having the same issuses. Any updates on this?

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard