question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lint affected doesn't work after 14.2.4 => 14.3.* migration

See original GitHub issue

Current Behavior

nx affected:lint --base=main fails with '_' is not found in schema error after 14.2.4 => 14.3.* migration. Linting of individual libs working fine. With 14.2.4 version affected linting working fine too.

Expected Behavior

Lint works

Failure Logs

'_' is not found in schema
 >  NX   Running target "lint" failed

Environment

Node : 16.14.2
OS   : win32 x64
npm  : 8.5.0

nx : 14.3.5
@nrwl/angular : 14.3.5
typescript : 4.7.3
---------------------------------------
Community plugins:
    @storybook/angular: 6.5.9

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
meeroslavcommented, Jul 6, 2022

Hi @gxxcastillo, the error I believe originates from @Phillip9587’s nx-stylelint (if that is what your stylelint target uses as an executor). I have created a PR that should fix this: https://github.com/Phillip9587/nx-stylelint/pull/336 but you will have to wait until Philip checks it, approves it, and releases a new version.

1reaction
gxxcastillocommented, Jul 4, 2022

Hi @meeroslav, thanks for your work on this issue. I see issues https://github.com/nrwl/nx/pull/10847, https://github.com/nrwl/nx/pull/10848, https://github.com/nrwl/nx/commit/6a65101ec239f1b3eae28734e4109b56a3700599, and https://github.com/nrwl/nx/issues/10806. I’ve updated to NX 14.4.0, and while I’m no longer getting '_' is not found in schema, I am now getting NX Schema does not support positional arguments. Argument <...list of files from my commit...>. Is this related to the same problem? Anything I need to do?

I’m using lintstaged with eslint, stylelint, and prettier - in that order. Eslint is passing (it wasn’t before upgrading to 14.4.0) but things now break with stylelint.

This is what my linstagedrc looks like (this has been working for the last 6months):

{
  "*": [
    "nx affected:lint --fix --base=main --head=HEAD",
    "nx affected --target=stylelint --fix --base=main --head=HEAD",
    "nx format:write"
  ]
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Version-specific upgrade instructions - GitLab Docs
GitLab 13.9 through GitLab 14.3 are affected by a bug in which enabling GitLab Maintenance Mode causes Geo secondary site statuses to appear...
Read more >
@nrwl/next: Versions | Openbase
core: add migration and deprecation warning for @nrwl/workspace:run-commands (#12199) (90604d8); core: rework outputs tracking to create fewer subscriptions ...
Read more >
@nrwl/linter - NPM Package Overview - Socket
The Linter plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.
Read more >
Multi-Campus Building Envelop Repairs (Package 4)
portion of the Work affected by a material change. After the Owner furnishes the evidence, the Owner shall not materially vary such financial...
Read more >
Tabbycat Documentation
However if a Docker installation doesn't work as outlined below, it's harder to address what isn't working. If you encounter any problems with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found