Closed robbieaverill closed 4 years ago
This bug is also present in the https://github.com/chec/commercejs-nextjs-demo-store/issues repo. Please apply changes to the Netlify version as well
Just tested a one click deploy on Vercel. My build succeeded and the site operates correctly.
I can't reproduce the original build error, but I've fixed the Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
errors in both demo store repos (https://github.com/chec/commercejs-nextjs-vercel/pull/4 and https://github.com/chec/commercejs-nextjs-demo-store/pull/97).
The first two "TypeError: Cannot read property 'trim' of undefined" errors are likely side-effects from React as a result of the previous error.
The build is successfully deployed and I have no error in dev env but when I got to the production url I have the following error screen.
And this in console: