-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
Describe the bug
react-query-devtools is not working in nextjs v13
i'm useing nextjs v13.4.5
"@tanstack/react-query": "^5.0.0-alpha.71",
"@tanstack/react-query-devtools": "^5.0.0-alpha.72",
but error occurs as follows "Attempted import error: 'template is not exported from 'solid-js/web' (imported as 'template')"
and It works fine without devtools
code
'use client';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactNode } from 'react';
export default function ReactQueryContext({
children,
}: {
children: ReactNode;
}) {
const queryClient = new QueryClient();
return (
<QueryClientProvider client={queryClient}>
{children}
<ReactQueryDevtools initialIsOpen={false} />
</QueryClientProvider>
);
}
Your minimal, reproducible example
.
Steps to reproduce
react-query-devtools is not working in nextjs v13
i'm useing nextjs v13.4.5
"@tanstack/react-query": "^5.0.0-alpha.71",
"@tanstack/react-query-devtools": "^5.0.0-alpha.72",
but error occurs as follows "Attempted import error: 'template is not exported from 'solid-js/web' (imported as 'template')"
and It works fine without devtools
Expected behavior
react-query-devtools is not working in nextjs v13
i'm useing nextjs v13.4.5
"@tanstack/react-query": "^5.0.0-alpha.71",
"@tanstack/react-query-devtools": "^5.0.0-alpha.72",
but error occurs as follows "Attempted import error: 'template is not exported from 'solid-js/web' (imported as 'template')"
and It works fine without devtools
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
macOs
Tanstack Query adapter
None
TanStack Query version
v5.0.0-alpha.71
TypeScript version
v5.1.3
Additional context
No response

