Build fails with error "Build error occurred TypeError: Cannot read properties of undefined (reading 'split')"
Error occurs when using the yarn build command. says compiles successfully and Full error below.
...... https://github.com/browserslist/browserslist#browsers-data-updating info - Creating an optimized production build info - Compiled successfully
Build error occurred
TypeError: Cannot read properties of undefined (reading 'split') at getFilePaths (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\86.js:33:2214) at getFilePaths (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\86.js:33:2885) at getFilePaths (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\86.js:33:2885) at _callee2$ (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\pages[[...slug]].js:307:4042) at tryCatch (C:\MY FILES\nativebase-docs\nativebase-docs\node_modules\regenerator-runtime\runtime.js:63:40) at Generator.invoke [as _invoke] (C:\MY FILES\nativebase-docs\nativebase-docs\node_modules\regenerator-runtime\runtime.js:294:22) at Generator.next (C:\MY FILES\nativebase-docs\nativebase-docs\node_modules\regenerator-runtime\runtime.js:119:21) at asyncGeneratorStep (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\525.js:45:24) at _next (C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\525.js:67:9) at C:\MY FILES\nativebase-docs\nativebase-docs.next\server\chunks\525.js:74:7 { type: 'TypeError' } error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.