Skip to content

TypeError: Cannot read property 'match' of undefined #1

@byeblogs

Description

@byeblogs

Hii, i try using your boilerplate.. so far build with this boilerplate is okay, but sometimes i got error like this..

TypeError: Cannot read property 'match' of undefined at Function.match [as loadData] (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/pages/ProductDetail/index.js:16:59) at loadData (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/server.js:58:23) at Array.map (<anonymous>) at map (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/server.js:57:6) at getLoadBranchData (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/server.js:157:26) at tryCatch (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/node_modules/regenerator-runtime/runtime.js:45:40) at Generator.invoke [as _invoke] (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/node_modules/regenerator-runtime/runtime.js:271:22) at Generator.prototype.<computed> [as next] (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/node_modules/regenerator-runtime/runtime.js:97:21) at asyncGeneratorStep (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/server.js:66:103) at _next (/Users/mac/Documents/Workspace_Air/###polosan.bandung.v.4.0/src/server.js:68:194)

when trying to get 'http://localhost:2525/product-detail/8' <!-- which is when first load i have no problem, but when i try to load page.. i've got an error like above..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions