migration issues
./node_modules/@pankod/refine-react-router/dist/esm/index.js 49:10-11
export 'useIsAuthenticated' (imported as 'O') was not found in '@pankod/refine-core' (possible exports: AuthPage, Authenticated, CanAccess, ErrorComponent, LayoutWrapper, LoginPage, ReadyPage, Refine, RouteChangeHandler, UndoableQueue, createTreeView, file2Base64, getDefaultFilter, getDefaultSortOrder, handleUseParams, importCSVMapper, parseTableParams, parseTableParamsFromQuery, routeGenerator, setInitialFilters, setInitialSorters, stringifyTableParams, unionFilters, unionSorters, useApiUrl, useAuthenticated, useBreadcrumb, useCan, useCanWithoutCache, useCancelNotification, useCheckError, useCreate, useCreateMany, useCustom, useCustomMutation, useDataProvider, useDelete, useDeleteMany, useExport, useForgotPassword, useForm, useGetIdentity, useGetLocale, useHandleNotification, useImport, useInvalidate, useIsExistAuthentication, useList, useLiveMode, useLog, useLogList, useLogin, useLogout, useMany, useMenu, useModal, useMutationMode, useNavigation, useNotification, useOne, usePermissions, usePublish, useRedirectionAfterSubmission, useRefineContext, useRegister, useResource, useResourceSubscription, useResourceWithRoute, useRouterContext, useSelect, useSetLocale, useShow, useSubscription, useSyncWithLocation, useTable, useTitle, useTranslate, useUpdate, useUpdateMany, useUpdatePassword, useWarnAboutChange, userFriendlyResourceName)
8 Replies
Hey @rehan1 ,
Could you migrate your router provider to
@pankod/refine-react-router-v6
?
When did you create your refine project?rival-black•2y ago
2-3 months back
it was @pankod/refine-react-router-v6?
when i updated it i got issue
Yes, but don't forget to remove
@pankod/refine-react-router
rival-black•2y ago
okay sure
Don't forget to replace the
@pankod/refine-react-router
imports in your project with @pankod/refine-react-router-v6
rival-black•2y ago
"orders" not found in type: 'query_root': {"response":{"errors":[{"extensions":{"path":"$.selectionSet.orders","code":"validation-failed"},"message":"field "orders" not found in type: 'query_root'"}],"status":200,"headers":{"map":{"content-type":"application/json; charset=utf-8"}}},"request":{"query":"query ($limit: Int, $offset: Int, $order_by: [orders_order_by!], $where: orders_bool_exp) { orders (limit: $limit, offset: $offset, order_by: $order_by, where: $where) { id, patient_name } orders_aggregate (where: $where) { aggregate { count } } }","variables":{"limit":10,"offset":0,"order_by":{},"where":{}}}}
Error (status code: undefined)
not able to access any of the resources of App.js file
this error is not related to
@pankod/refine-react-router-v6
package 👀rival-black•2y ago
no no