Open elirandpg opened 1 year ago
To reproduce
git clone https://github.com/Luferov/soulmagic pnpm i pnpm run dev
This avoids the warning.
/**
* @type { import("next").NextConfig}
*/
const config = {
experimental: {
serverComponentsExternalPackages: ["@whatwg-node"],
},
};
module.exports = config;
This avoids the warning.
/** * @type { import("next").NextConfig} */ const config = { experimental: { serverComponentsExternalPackages: ["@whatwg-node"], }, }; module.exports = config;
Thank you, but unfortunately for me the warning persists. :(
We'll take a look but this is just a warning, and it shouldn't have any effect on runtime.
You're right, everything does work as it should, like I said. I will just have to filter it out of our logs specifically since it is very frequent. Thanks again!
First of all, when I open /api/graphql this error still exist.
Second of all, all GraphQL queries doesn't work. 🥲
First of all, when I open /api/graphql this error still exist.
This looks like a different error. Please create a different issue with a reproduction.
This works for me.
next@14.2.4 graphql-yoga@5.7.0
This avoids the warning.
/** * @type { import("next").NextConfig} */ const config = { experimental: { serverComponentsExternalPackages: ["@whatwg-node"], }, }; module.exports = config;
Describe the bug
Hey guys,
First, I apologize for not setting up a codesandbox for this, the setup alone would take hours in my current config. So I'm really wondering if you guys might have a quick win here?
I'm getting this in my terminal on every access to the Yoga server -
Contents of
route.ts
:I'm using Node v20.2 and the latest Next and Turborepo builds, and as you probably noticed the App router. Everything works as expected, but this warning is spamming my logs. It goes without saying that before Yoga my terminal was free of warnings. Wdyt?
Thanks!
Your Example Website or App
https://codesandbox.io/
Steps to Reproduce the Bug or Issue
My setup is in turborepo with a bunch of interconnected packages and applications. I'm not sure it can be replicated in a stable manner without our external services.
Expected behavior
The terminal shouldn't have dependency warnings.
Screenshots or Videos
No response
Platform
@graphql-yoga/*
version(s): 4.0.5next
version(s): 13.5.3Additional context
No response