graphprotocol / graph-client

The Graph library for building GraphQL-based dapps in a decentralized way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Improvement request] Critical dependency: the request of a dependency is an expression

matthewlilley opened this issue · comments

We use the generated SDK within multiple Next.js applications, and are seeing a lot of these messages.

Screenshot_62

How can these be avoided?

Are they preventing you to build the client? If no, you can ignore it.

@ardatan No, not at all. It's more of a nausiance. It clogs up terminal so makes debugging a little difficult.

It depends on your bundler. You can check the bundler's documentation for that.

I think this should be resolved on this end, and think this issue should stay open. Out of thousands of packages, the graph client is the only one which does this. Ignoring via webpack is an option but is a workaround rather than a real solution.

Ok I'm reopening it but this is not a bug definitely. This has 0 effect on runtime or it doesn't block you from building the project.
Maybe we'll find a way to get rid of these false warnings from webpack.

I have the same issue, does anyone know how to configure Webpack so that this warning goes away?

Same issue here, and also interested in webpack configuration :)