Closed akifunal closed 2 months ago
Experiencing similar issue!
Same with latest version 0.9.18, nextjs 14.2.3 and 14.2.4 (app-router)
/node_modules/.pnpm/@whatwg-node+fetch@0.9.18/node_modules/@whatwg-node/fetch/dist/node-ponyfill.js
Critical dependency: the request of a dependency is an expression
You can ignore the warning for now. It shouldn't have any effect for the functionality.
Good to know, as our CI fails on warnings during build... a temporary workaround (not ideal) is to tune the webpack in next.config
webpack: (config, { isServer }) => {
if (isServer) {
config.module = {
...config.module,
exprContextCritical: false,
}
}
return config;
},
Describe the bug
I'm using fets client in nextjs app (pages router). When NextJS is compiling pages or running in dev mode, console shows a warning :
Expected behavior
Not encounter any warnings or error messages when using fets.
Environment:
fets
: 0.14.3next
: 13.4.19