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

getting "Failed to determine dependencies" with nx11 #443

Closed
cakeinpanic opened this issue Feb 15, 2022 · 9 comments
Closed

getting "Failed to determine dependencies" with nx11 #443

cakeinpanic opened this issue Feb 15, 2022 · 9 comments
Labels
bug Something isn't working question Further information is requested

Comments

@cakeinpanic
Copy link
Contributor

Hi, I'm getting Failed to determine dependencies. error when running nx run-many --target=version --with-deps

I debugged into your code and found out that this method throws an error TypeError: (0 , project_graph_1.createProjectGraphAsync) is not a function

function getProjectDependencies(projectName) {
    return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
        // The shape of the project graph can still change. So we're pinning the
        // version of the graph to 5.0.
        const dependencyGraph = yield (0, project_graph_1.createProjectGraphAsync)('5.0');
        return getProjectsFromDependencies(dependencyGraph.dependencies[projectName]);
    });
}

I assume that the package is incompatible with nx 11 which I am using
Tell me please which version of your package is compatible with nx 11 (cause I can't upgrade it)?

My package.json currently:

"@nrwl/workspace": "11.6.3",
"@jscutlery/semver": "2.18.1",
@edbzn edbzn added bug Something isn't working question Further information is requested labels Feb 16, 2022
@edbzn
Copy link
Member

edbzn commented Feb 16, 2022

Hi @cakeinpanic, are you using the --trackDeps option with semver? I'm working on a fix to support Nx 11.

@cakeinpanic
Copy link
Contributor Author

Hi, thank you for fast response!
yes, I have trackDeps in my workspace.json

@edbzn edbzn closed this as completed in bd7ce83 Feb 16, 2022
@edbzn
Copy link
Member

edbzn commented Feb 16, 2022

@cakeinpanic this has been fixed in 2.18.2, thanks for reporting this.

@cakeinpanic
Copy link
Contributor Author

thank you, @edbzn, works like a charm!

@mangersmiovision
Copy link

mangersmiovision commented Mar 25, 2022

@edbzn This is broken again as of 2.21.1. It works well in 2.21.0.

@cakeinpanic
Copy link
Contributor Author

Still broken in. 2.23.3

I also noticed that it installs nx14 as a dependency. I assume it may cause this problem. Isn't it better to have nx as a peerDependency?

@edbzn
Copy link
Member

edbzn commented May 16, 2022

@cakeinpanic @nrwl/devkit is already a peer dependency 🤔

@edbzn
Copy link
Member

edbzn commented May 16, 2022

@cakeinpanic did you try the latest 2.23.4?

@matheo
Copy link

matheo commented Sep 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants