cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HansG
Level: Powered On

Re: Updated PCF Tooling version is now available (July 2019)!

I have a control which has a DateAndTime.DateOnly property as a binding and after updating the PCF Tooling to the latest version I get an error from React when the output of the control is returned:

 

react-dom.production.min.js:117 Invariant Violation: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=Tue%20Jan%2001%202019%2001%3A00%3A00... for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at pb (http://127.0.0.1:8181/lib/react-dom.production.min.js:12:454)
at n (http://127.0.0.1:8181/lib/react-dom.production.min.js:13:221)
at Ac (http://127.0.0.1:8181/lib/react-dom.production.min.js:70:369)
at http://127.0.0.1:8181/lib/react-dom.production.min.js:80:190
at N (http://127.0.0.1:8181/lib/react-dom.production.min.js:89:471)
at hi (http://127.0.0.1:8181/lib/react-dom.production.min.js:105:408)
at Qg (http://127.0.0.1:8181/lib/react-dom.production.min.js:144:217)
at Rg (http://127.0.0.1:8181/lib/react-dom.production.min.js:145:76)
at Sc (http://127.0.0.1:8181/lib/react-dom.production.min.js:158:109)
at Z (http://127.0.0.1:8181/lib/react-dom.production.min.js:156:492)
at Kc (http://127.0.0.1:8181/lib/react-dom.production.min.js:155:52)
at ya (http://127.0.0.1:8181/lib/react-dom.production.min.js:153:159)
at Object.enqueueSetState (http://127.0.0.1:8181/lib/react-dom.production.min.js:202:409)
at t.setState (http://127.0.0.1:8181/lib/react.production.min.js:20:433)
at t.onOutputChange (http://127.0.0.1:8181/harness.js:11:278912)
at http://127.0.0.1:8181/harness.js:11:353259

 

With string outputs it works fine but seems something broke for Date output objects. Has anyone else encountered this issue and is there a solution?

Power Apps Staff GregHurlmanMSFT
Power Apps Staff

Re: Updated PCF Tooling version is now available (July 2019)!

@HansG -- can you clarify if this error happens when running the debug harness (the site you get when you run 'npm run start'), when hosted in a Model-Driven PowerApp/UCI App, or both?

HansG
Level: Powered On

Re: Updated PCF Tooling version is now available (July 2019)!

@GregHurlmanMSFT it is when running in the debug harness.

Power Apps Staff GregHurlmanMSFT
Power Apps Staff

Re: Updated PCF Tooling version is now available (July 2019)!

@HansG Thanks for following up -- we're working on this issue now, and hope to have it fixed soon. If you run into this same issue when running your component in an actual app, please let us know.

Highlighted
rexkenley
Level 8

Re: Updated PCF Tooling version is now available (July 2019)!

I have the same issue. This was my workaround for the testing harness but then found out that I cannot update the date field properly when deployed.

 

 

  public getOutputs(): IOutputs {
    //@ts-ignore
    return { value: this.currentValue && this.currentValue.toString() };
  }

 

 

Is there a guide on how to properly return values based on the property of-type?

rexkenley
Level 8

Re: Updated PCF Tooling version is now available (July 2019)!

@GregHurlmanMSFT 

 

Is there an ETA on a fix for this issue? Thanks!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Users online (4,838)