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

[BUG] Failed to process project dependencies with "@nx-dotnet/core" #800

Open
jeffschulzusc opened this issue Nov 9, 2023 · 1 comment
Labels
bug Something isn't working needs-triage This issue has yet to be looked over by a core team member

Comments

@jeffschulzusc
Copy link

Current Behavior

i have nx monorepo, mostly angular projects

yarn add --dev @nx-dotnet/core
nx g @nx-dotnet/core:init

but then nx fails, ex:

nx graph
NX   Failed to process project dependencies with "@nx-dotnet/core".
Cannot convert undefined or null to object

this doesnt happen with @nx-dotnet/core@1.22.0

Expected Behavior

should not fail

Github Repo

No response

Steps to Reproduce

yarn add --dev @nx-dotnet/core
nx g @nx-dotnet/core:init
nx graph

Nx Report

Node   : 18.15.0
   OS     : darwin-arm64
   yarn   : 1.22.19
   
   nx                 : 16.8.1
   @nx/js             : 16.8.1
   @nx/jest           : 16.8.1
   @nx/linter         : 16.8.1
   @nx/workspace      : 16.8.1
   @nx/angular        : 16.8.1
   @nx/cypress        : 16.8.1
   @nx/devkit         : 16.8.1
   @nrwl/devkit       : 15.8.5
   @nx/eslint-plugin  : 16.8.1
   @nx/nest           : 16.8.1
   @nx/node           : 16.8.1
   @nrwl/tao          : 16.8.1
   @nx/web            : 16.8.1
   @nx/webpack        : 16.8.1
   nx-cloud           : 16.4.0
   typescript         : 5.1.6
   ---------------------------------------
   Community plugins:
   @ngneat/transloco    : 6.0.0
   @ngrx/effects        : 16.2.0
   @ngrx/entity         : 16.2.0
   @ngrx/router-store   : 16.2.0
   @ngrx/schematics     : 16.2.0
   @ngrx/store          : 16.2.0
   @ngrx/store-devtools : 16.2.0
   @nx-dotnet/core      : 1.22.0
   ---------------------------------------
   The following packages should match the installed version of nx
     - @nrwl/devkit@15.8.5
   
   To fix this, run `nx migrate nx@16.8.1`

nx.json

{
  "affected": {
    "defaultBase": "master"
  },
  "npmScope": "vhap",
  "tasksRunnerOptions": {
    "default": {
      "runner": "@nx/workspace/tasks-runners/default",
      "options": {
        "cacheableOperations": [
          "build",
          "lint",
          "test",
          "e2e"
        ],
        "parallel": 1,
        "accessToken": "Mzg4NDgwMmEtOTk1Mi00YWY1LTg5ZTMtMzNjNjY5NTExNjQxfHJlYWQtd3JpdGU="
      }
    }
  },
  "generators": {
    "@nx/angular:application": {
      "style": "scss",
      "linter": "eslint",
      "unitTestRunner": "jest",
      "e2eTestRunner": "cypress"
    },
    "@nx/angular:library": {
      "linter": "eslint",
      "unitTestRunner": "jest"
    },
    "@nx/angular:component": {
      "style": "scss"
    },
    "@nx/angular": {
      "application": {
        "linter": "eslint"
      },
      "library": {
        "linter": "eslint"
      },
      "storybook-configuration": {
        "linter": "eslint"
      }
    }
  },
  "defaultProject": "vha",
  "$schema": "./node_modules/nx/schemas/nx-schema.json",
  "targetDefaults": {
    "build": {
      "dependsOn": [
        "^build"
      ],
      "inputs": [
        "production",
        "^production"
      ]
    },
    "test": {
      "inputs": [
        "default",
        "^production",
        "{workspaceRoot}/jest.preset.js"
      ]
    }
  },
  "namedInputs": {
    "default": [
      "{projectRoot}/**/*",
      "sharedGlobals"
    ],
    "sharedGlobals": [
      "{workspaceRoot}/workspace.json",
      "{workspaceRoot}/tsconfig.base.json",
      "{workspaceRoot}/tslint.json",
      "{workspaceRoot}/nx.json"
    ],
    "production": [
      "default",
      "!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
      "!{projectRoot}/tsconfig.spec.json",
      "!{projectRoot}/jest.config.[jt]s",
      "!{projectRoot}/src/test-setup.[jt]s"
    ]
  },
  "plugins": [
    "@nx-dotnet/core"
  ]
}

Failure Logs

NX   Failed to process project dependencies with "@nx-dotnet/core".
Cannot convert undefined or null to object

Additional Information

No response

@jeffschulzusc jeffschulzusc added bug Something isn't working needs-triage This issue has yet to be looked over by a core team member labels Nov 9, 2023
@jeffschulzusc
Copy link
Author

nrwl/nx#20189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage This issue has yet to be looked over by a core team member
Projects
None yet
Development

No branches or pull requests

1 participant