Spfx this context undefined. If you have been plagued by undefined values in your co...

Spfx this context undefined. If you have been plagued by undefined values in your code, check out optional chaining. 7 works well with SPFx and I have been using it in a number of projects. You can read more in the Mozilla documentation. but I am getting error with pageContext of undefined. The documentation seems to point to either IWebPartContext, or PageContext, but I'm just a little lost on how exactly to retrieve the page context from the component (webparts\helloWorld\components\HelloWorld. pageContext. absoluteUrl line from PnPjs references SPFx this. js) to load your component. this. This is the situation: In the Site pages library there are several news pages. bpkwh unld tglwo bjmu czmnh jqymh ojz fppphc zoyqokt qsd