I am facing error while deploying my gatsby site.
Site Name: elated-neumann-e38244.netlify.app
Here is build error log:
9:31:24 PM: Cannot read property ‘split’ of undefined
Build failed due to a user error: Build script returned non-zero exit code: 2
You can check full build link
These are steps i have tried so far:
- Adding environment variables NODE_VERSION to 14.15.0. This is the version on which i build on local machine.
- Adding environment variable NPM_VERSION of 6.14.8 as per my local machine where build works fine.
- Clear cache and deploy site