GeekyAnts / GeekyAnts/nativebase-docs
Build fails with error "Build error occurred TypeError: Cannot read properties of undefined (reading 'split')"
- Dominant language
- TypeScript
- Stars
- 25
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with `yarn build` and compare the successful compilation with the subsequent error in `.next/server/pages/[[...slug]].js`. Trace the `getFilePaths` calls shown in the stack and identify which undefined value reaches `split`; done means the production build completes without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100