Skip to content
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 5 & false circular dependency warning #326

Closed
qortex opened this issue Nov 13, 2020 · 1 comment
Closed

Webpack 5 & false circular dependency warning #326

qortex opened this issue Nov 13, 2020 · 1 comment

Comments

@qortex
Copy link

qortex commented Nov 13, 2020

I just switched to Webpack 5 (Angular 11) and I now get 1 warning per .graphql file:

Warning: Circular dependency detected:
src/app/backbone/identity/person.graphql -> src/app/backbone/identity/person.graphql

Nothing fancy with my setup I think, just this webpack extra config:

module.exports = {
  module: {
    rules: [
      {
        test: /\.(graphql|gql)$/,
        exclude: /node_modules/,
        loader: 'graphql-tag/loader',
      },
    ],
  },
};

My graphql files don't import themselves or other files. Just simple graphql queries & mutations.

The warnings are there, but the app works well nonetheless.

@qortex
Copy link
Author

qortex commented Jan 4, 2021

Closed through just-jeb/angular-builders#841

TLDR; add "circular-dependency-plugin": "^5.2.2" to resolutions in packages.json, if a smaller version is used at the time you read this. The bug is fixed in this version.

@qortex qortex closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant