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

Community site session details

Session Id :

(solved) Type ‘string | null’ is not assignable to type ‘string’ while working with PCF

Sanjaya Prakash Pradhan Profile Picture Sanjaya Prakash Pra... 2,745 User Group Leader
While working with PCF you might get the below error. Type ‘string | null’ is not assignable to type ‘string’. Solution Make sure you have a default value for the value you’re trying to get. In this case, I had to default to empty string. Hope this helps.

This was originally posted here.

Comments

*This post is locked for comments