cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ben-thompson
Level 8

PowerApp Component Framework and the Solution checker

Before I go mad and spend any more time investigating how to resolve the error messages the Solution checker returns for a PCF component can I confirm that the following issues (1 high and 2 medium) are currently unavoidable:-

 

web-avoid-eval - recorded against line 98 of bundle.js and unavoidable as the component's source code is wrapped around an eval statement to ensure it doesn't break the rest of the site

web-use-strict-equality-operators - recorded against line 64 of bundle.js

web-use-strict-mode - recorded against line 2 of bundle.js

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps Staff MikeHuguet
Power Apps Staff

Re: PowerApp Component Framework and the Solution checker

Hey @ben-thompson,

 

Great question. Unfortunately, there are going to be scenarios where issues are flagged that cannot be avoided in the current version of Solution checker. For the future, we are evaluating ways to auto-exclude 3rd party well-known libraries, such as the one in question in your post. While there are probably ways in which you work around this, they are not going to be very elegant and likely cause more work than they are possibly worth. That's the not so great news. The better news is that we are working to roll out other mechanisms that will be out in public preview very soon (as in weeks, not months) in which you will be able to pass a list of files to exclude during analysis, which will allow avoidance of the situation that you currently find yourself facing. To specifically answer your question, if this was your code, we'd suggest making the recommended changes. If it is an open source library, then you could consider contributing back to the library changes, where it makes sense, otherwise, you should simply ignore these reported issues.

 

Please let me/us know if you have any other questions.

 

Thanks,

Mike Huguet

(Lead Engineer for Microsoft PowerApps Checker)

View solution in original post

1 REPLY 1
Highlighted
Power Apps Staff MikeHuguet
Power Apps Staff

Re: PowerApp Component Framework and the Solution checker

Hey @ben-thompson,

 

Great question. Unfortunately, there are going to be scenarios where issues are flagged that cannot be avoided in the current version of Solution checker. For the future, we are evaluating ways to auto-exclude 3rd party well-known libraries, such as the one in question in your post. While there are probably ways in which you work around this, they are not going to be very elegant and likely cause more work than they are possibly worth. That's the not so great news. The better news is that we are working to roll out other mechanisms that will be out in public preview very soon (as in weeks, not months) in which you will be able to pass a list of files to exclude during analysis, which will allow avoidance of the situation that you currently find yourself facing. To specifically answer your question, if this was your code, we'd suggest making the recommended changes. If it is an open source library, then you could consider contributing back to the library changes, where it makes sense, otherwise, you should simply ignore these reported issues.

 

Please let me/us know if you have any other questions.

 

Thanks,

Mike Huguet

(Lead Engineer for Microsoft PowerApps Checker)

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (10,174)