-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Issue with Next.js 'use client' #19
Comments
What if you remove |
Yes, thank so much, it works much more better. When the |
It's necessary if any of sinks you'd like to use is |
@dahlia Thank you for updating the package, but I have new error with the package now:
I don't have this issue in 0.6.2 |
Could you share the import trace as well? |
@dahlia Unfortunately, I have reverted everything. But, you should be able to create a new Next.js app and add logtail, you'll able to get the same error. |
I can confirm a new issue in Next.js (Pages router) and 0.6.3:
There is The error shows up in server logs, i.e. it happens during the SSR phase, in Node.js environment. When using logtape 0.6.2, this warning does not show up. |
@ixartz @kachkaev Could you give v0.6.4-dev.96 a try? I addressed this issue again, and I hope it will work for you. |
👋 @dahlia! I tried
This warning does not show up on 0.6.2, sticking with it for now. |
Still happening on 0.7.1 too |
Adding const nextConfig = {
experimental: {
instrumentationHook: true, // I'm running logtape config/init in instrumentation.ts when NEXT_RUNTIME is 'nodejs'
serverComponentsExternalPackages: ["@logtape/logtape"],
...
},
...
} |
Still need to figure out how to run on 'edge' though 🤔 |
First thank you, wanted to try this library and love the promise about supporting multi environment: node.js, edge and browser.
The library works perfectly with RSC and Route Handler (API) with Next.js. There isn't any issue with server side.
I have some issue when using with client component 'use client' in Next.js:
The configuration I use:
The text was updated successfully, but these errors were encountered: