Fix reading Component.__N_SSG (#10037)
Fix reading Component.__N_SSG (#10037)

* Fix error when reading Component.__NEXT_SPR in packages/next/client/index.js

* Use the .? optional chaining operator

Co-Authored-By: Tim Neutkens <5ee0edb9e2229c0838f1959779f1949031de0123@timneutkens.nl>

* Update index.js

Co-authored-by: Tim Neutkens <5ee0edb9e2229c0838f1959779f1949031de0123@timneutkens.nl>
Co-authored-by: Joe Haddad <4e0ba6b7cd003e26bd2c43baef51e423886a04cd@gmail.com>

JeromeFitz/next.js,azukaru/next.js,JeromeFitz/next.js,flybayer/next.js,JeromeFitz/next.js,flybayer/next.js,azukaru/next.js,zeit/next.js,zeit/next.js,flybayer/next.js,zeit/next.js,azukaru/next.js,flybayer/next.js,JeromeFitz/next.js,azukaru/next.js