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

Schema validation warnings when running nx lint #11690

Closed
mcmxcdev opened this issue Aug 23, 2022 · 3 comments
Closed

Schema validation warnings when running nx lint #11690

mcmxcdev opened this issue Aug 23, 2022 · 3 comments
Assignees
Labels
blocked: repro needed blocked: retry with latest Retry with latest release or head. outdated scope: linter Issues related to Eslint support in Nx type: bug

Comments

@mcmxcdev
Copy link

We just upgraded all nx-related libraries from 14.5.4 to 14.5.8 and encountered an issue with nx lint commands.

Current Behavior

There are various lines which look related to schema validation:

> nx run shared-utils:lint

Linting "shared-utils"...
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #
can't resolve reference #/definitions/directiveConfigSchema from id #

Expected Behavior

No lint warnings

Steps to Reproduce

I was able to pinpoint it to extending the following nx plugin:

{
  "files": ["*.ts", "*.tsx"],
  "extends": ["plugin:@nrwl/nx/typescript"],
}

Removing this configuration removes the warnings.

Environment

   Node : 16.16.0
   OS   : linux x64
   pnpm : 7.9.4
   
   nx : 14.5.8
   @nrwl/angular : Not Found
   @nrwl/cypress : 14.5.8
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.5.8
   @nrwl/eslint-plugin-nx : 14.5.8
   @nrwl/express : Not Found
   @nrwl/jest : 14.5.8
   @nrwl/js : 14.5.8
   @nrwl/linter : 14.5.8
   @nrwl/nest : 14.5.8
   @nrwl/next : 14.5.8
   @nrwl/node : 14.5.8
   @nrwl/nx-cloud : 14.4.1
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 14.5.8
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.5.8
   @nrwl/web : 14.5.8
   @nrwl/workspace : 14.5.8
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:

@AgentEnder AgentEnder added the scope: linter Issues related to Eslint support in Nx label Aug 26, 2022
@meeroslav
Copy link
Contributor

Thank you @mcmxcdev for reporting this issue.

I was, unfortunately, unable to reproduce it. Can you perhaps provide a minimal repo where this is reproducible?
Additionally, can you try migrating to the latest version and see if it's still happening on your monorepo?

@meeroslav meeroslav added the blocked: retry with latest Retry with latest release or head. label Sep 12, 2022
@meeroslav meeroslav self-assigned this Sep 12, 2022
@mcmxcdev
Copy link
Author

Hey Miroslav, this was actually coming from typescript-eslint/typescript-eslint#5525 and has been fixed in the mean time. Sorry for keeping this open.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: repro needed blocked: retry with latest Retry with latest release or head. outdated scope: linter Issues related to Eslint support in Nx type: bug
Projects
None yet
Development

No branches or pull requests

3 participants