-
Notifications
You must be signed in to change notification settings - Fork 44
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
Webpack error when using graph-client in app bootstrapped w/ Create React App #679
Comments
@ardatan Any idea how to solve this issue, or who else to tag who might know? |
Same stuff in latest Next.js using App router.
|
I've prepared a reproduction repo: You can run it and go to localhost:3000/info, that will start the query and throw the abovementioned webpack error. |
Maybe you can try modifying /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: false,
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if (!isServer) {
config.resolve.fallback = {
...config.resolve.fallback,
url: false,
path: false,
};
config.plugins.push(new webpack.NormalModuleReplacementPlugin(
/node:url/,
function(resource) {
resource.request = resource.request.replace(/^node:/, '');
}
));
}
return config;
},
};
export default nextConfig; |
throw new Error(`Specified images.loaderFile does not exist at "${absolutePath}".`); |
My team is trying to use
@live
queries in our front-end, which uses Urql, as we transition to the Graph Network from our self-hosted subgraph, which supportssubscriptions
.We have tried to follow the
urql-live-query
example, which uses Vite. But we bootstrapped our app withcreate-react-app
which uses webpack under the hood, and we've been running into the following compilation error when attempting to use thegraph-client
with our existing setup:I have created a minimal reproducible example and would greatly appreciate your help with making this work.
The text was updated successfully, but these errors were encountered: