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.

Cannot read properties of undefined (reading 'xxx:lint')

See original GitHub issue

Current Behavior

Error when run npx nx print-affected --base=origin/master~1 --target=lint --verbose

Expected Behavior

no error

14.5.9 was wroking but bot in 14.6.4

Steps to Reproduce

run npx nx print-affected --base=origin/master~1 --target=lint --verbose

Failure Logs

   TypeError: Cannot read properties of undefined (reading 'shared-util-report-model:lint')
    at allDeps (C:\IT\ItZHMW\Web\node_modules\@nrwl\linter\src\executors\eslint\hasher.js:33:36)
    at C:\IT\ItZHMW\Web\node_modules\@nrwl\linter\src\executors\eslint\hasher.js:10:30
    at Generator.next (<anonymous>)
    at fulfilled (C:\IT\ItZHMW\Web\node_modules\tslib\tslib.js:115:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

cause context.taskGraph = {} on line 12 in hasher.js

Environment

NX Report complete - copy this into the issue template

Node : 16.15.1 OS : win32 x64 yarn : 3.2.3

nx : 14.6.4 @nrwl/angular : 14.6.4 @nrwl/cypress : 14.6.4 @nrwl/detox : Not Found @nrwl/devkit : 14.6.4 @nrwl/eslint-plugin-nx : 14.6.4 @nrwl/express : Not Found @nrwl/jest : 14.6.4 @nrwl/js : 14.6.4 @nrwl/linter : 14.6.4 @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/schematics : Not Found @nrwl/storybook : 14.6.4 @nrwl/web : 14.6.4 @nrwl/workspace : 14.6.4 typescript : 4.7.4

Local workspace plugins:

Community plugins: angular-auth-oidc-client: 13.1.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:9
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
cppmxcommented, Sep 7, 2022

I have the same issue.

OS: RHE 8.0 Node: 14.18.0 npm: 6.14.15 nx: 14.6.4

The npx nx affected --base=origin/master --target=lint command works fine but it fails if you try to print the affected apps.

1reaction
labeledcommented, Sep 9, 2022

The issue started with this change a312611#diff-08499af12ca814c9328ed32c05086090b6bc8b64681bb9e7d67600990eb64209R74

An empty object is set as taskGraph. I’d recommend downgrade to 14.5.10

I can try and roll back but I don’t think there’s support for down migrations. I would recommend adding more regression testing to ensure nx commands are working before merging pr’s.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot read properties of undefined (reading 'native') - You.com
Hi, I tried to test Skia in my react native app but this "Cannot read properties of undefined (reading 'MakeWebGLCanvasSurface')" issue constantly shows...
Read more >
Diff - native_client/nacl-bionic - Google Git
FP underflow/denorm software +# handling is broken (doesn't exist!) on the Alpha ... to ensure that + * the read is executed before...
Read more >
lint-staged - Bountysource
Specifically I'm using ESLint with lint-staged. I cannot properly escape the filename. Right now I am exporting variable with export something='$something', but ...
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