-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-query-devtools is not working in nextjs v13 #5671
Comments
Hi @SeungYn , could I ask you to try using the following versions:
|
I encountered this same bug during build using: "@tanstack/svelte-query": "5.0.0-alpha.77",
"@tanstack/svelte-query-devtools": "5.0.0-alpha.77", I was able to fix the issue by adding |
@lachlancollins thank you! |
@lachlancollins I have upgraded It looks like the fix landed in |
True, it didn't get bumped. I might need to change the publish config, it only looks for changes in src and package.json. |
I'm seeing the same in one of our examples. @ardeora can you please have a look? |
so in our nextJs example (pages dir), I'm getting
in our app directory example, I'm getting
@ardeora can you have a look at this please? I'd like to move to |
@mcous a new version of all devtools packages is available! |
ANY BETA HERE FOR REACT? |
Still getting this error in my NextJS 13 project. I'm using:
And I also tried using the "5.0.0-alpha.82" version of devtools.
|
Same with
|
please show a reproduction, we're in |
Thanks @TkDodo I created a repo and it worked fine. My issue was where I was wrapping the context in my app.. error layout: // src/app/layout.tsx
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<ClerkProvider>
<Providers> {/* wrapping html */}
<html lang="en">
<body>{children}</body>
</html>
</Providers>
</ClerkProvider>
);
} working layout: // src/app/layout.tsx
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<ClerkProvider>
<html lang="en">
<body>
<Providers>{children}</Providers> {/* wrapping children */}
</body>
</html>
</ClerkProvider>
)
} EDIT: in a minimal repo both these work (without clerk), just in my own repo the first layout doesnt work.. I am using a Clerk auth context too which might not be playing nicely? EDIT2: yep, once I add a clerk provider to the minimal repo I get the same error. you can find a repo below, unfortunately you'll first need environment keys from clerk to be able to test. Updated the snippets above to reflect this. |
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
library
result
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
The text was updated successfully, but these errors were encountered: