Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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? 

  • RodrigoGroener Profile Picture
    2 on at
    Re: Solution checker still showing javascript "eval" usage errors

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

  • Denis_GD Profile Picture
    2 on at
    Re: Solution checker still showing javascript "eval" usage errors

    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

  • HerrMueller Profile Picture
    79 on at
    Re: Solution checker still showing javascript "eval" usage errors

    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.

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 57 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard