drupal-graphql / drupal-graphql/drupal-decoupled-app
TypeError: Cannot read property 'asPath' of undefined
Open
- Dominant language
- PHP
- Stars
- 310
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
`yarn build` fails with this error...
Any ideas how to fix it?
/src/components/Router/index.tsx
`
const withQuery = graphql<
IRouterQueryProps,
IRouterQueryData,
IRouterQueryVariables,
IRouterQueryChildProps
>(query, {
options: props => ({
variables: {
path: props.url.asPath,
},
}),
props: ({ ownProps, data }) => ({
...ownProps,
entity: data.route && data.route.entity,
loading: data.loading,
}),
});
`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.