Excluding packages from bundle
I'm getting these errors:
So I added this to my app config:
But the errors still show. I don't use these packages however have reason to believe that they stem from a package I import in a file called
pm2
which is a server-only package. I've also tried excluding pm2 but to no avail.12 Replies
extended-salmon•4mo ago
can you provide a complete minimal example repo?
equal-aquaOP•4mo ago
i can't get it to reproduce in a minimal repo :/
removing pm2 i now get this browser error:
extended-salmon•4mo ago
if you can share your full example we could have a quick look
equal-aquaOP•4mo ago
would you mind sending me your github email so i can add you to the repo
extended-salmon•4mo ago
GitHub user name schiller-manuel
equal-aquaOP•4mo ago
ty
just added u
extended-salmon•4mo ago
you are calling server only functions from a loader
loader and beforeLoad are isomorphic in start
this means that they run on both the server and the client
initially, during SSR, on the server
then on subsequent client navigations they run on the client
if you want something to always execute on the server, you need to wrap into a server function
equal-aquaOP•4mo ago
ohhh tysm!!
the last error i get is:
extended-salmon•4mo ago
apparently a browser extension
extended-salmon•4mo ago
GitHub
Hydration Error in Next.js 15 with React 19 Due to cz-shortcut-list...
To Reproduce Description: After updating my Next.js application to: Next.js: 15.0.2 React: 19.0.0-rc-02c0e824-20241028 React-DOM: 19.0.0-rc-02c0e824-20241028 I encountered a new hydration error tha...
extended-salmon•4mo ago
The cz-shortcut-listen="true" attribute injected by Colorzilla causes a mismatch during the server-client hydration process in Next.js. When Colorzilla is disabled, the hydration error resolves.
equal-aquaOP•4mo ago
perf thanks, there's no error when i go in incognito