Skip to content

Build fails with error "Build error occurred TypeError: Cannot read properties of undefined (reading 'split')" #430

@jhondada4ever

Description

@jhondada4ever

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions