Open swr82 opened 6 years ago
Hi, yarn build fails with this error... Any ideas how to fix it?
yarn build
/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, }), }); `
I had the same. To make it work for the moment i renamed components/router/index.tsx to components/router/index.jsx to disable the type check.
components/router/index.tsx
components/router/index.jsx
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