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

Failed to run explicitly-set-projects-to-update-buildable-deps from @nx/js. This workspace is NOT up to date! #26479

Open
1 of 4 tasks
sbma24 opened this issue Jun 10, 2024 · 3 comments

Comments

@sbma24
Copy link

sbma24 commented Jun 10, 2024

Current Behavior

I am currently trying to upgrade the nx workspace and Angular to 17.3.0. I already executed npx nx migrate 17.3.0 and it worked well. After that, I executed npx nx migrate --run-migrations and exactly there I always get these errors:

  • Failed to run explicitly-set-projects-to-update-buildable-deps from @nx/js. This workspace is NOT up to date!
  • Unable to create nodes for apps/test/project.json using plugin nx/core/target-defaults. Inner Error: ReferenceError: structuredClone is not defined

I already searched for solutions and found some same bug reports here but nothing has helped and the error message I get is not the same. Additionally, I checked the project.json and all is fine.

Expected Behavior

Migration works

GitHub Repo

No response

Steps to Reproduce

In my case just try to upgrade your Angular Version to 17.3.0.

Nx Report

Unable to create nodes for apps/test/project.json using plugin nx/core/target-defaults.


         Inner Error: ReferenceError: structuredClone is not defined
       at exports.TargetDefaultsPlugin.createNodes (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\plugins\target-defaults\target-defaults-plugin.js:54:28)
       at buildProjectsConfigurationsFromProjectPathsAndPlugins (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\project-graph\utils\project-configuration-utils.js:146:29)
       at createProjectConfigurations (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\project-graph\utils\retrieve-workspace-files.js:89:156)
       at _retrieveProjectConfigurations (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\project-graph\utils\retrieve-workspace-files.js:61:12)
       at retrieveProjectConfigurations (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\project-graph\utils\retrieve-workspace-files.js:46:12)
       at processTicksAndRejections (node:internal/process/task_queues:96:5)
       at async processFilesAndCreateAndSerializeProjectGraph (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\daemon\server\project-graph-incremental-recomputation.js:140:28)
       at async getCachedSerializedProjectGraphPromise (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\daemon\server\project-graph-incremental-recomputation.js:43:16)
       at async handleRequestProjectGraph (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\daemon\server\handle-request-project-graph.js:12:24)
       at async handleResult (C:\Users\test\source\repos\test\test\ClientApp\test\node_modules\nx\src\daemon\server\server.js:110:16)

I just replaced some path names by test

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@harellevy
Copy link

same here.. upgrading angular from 16 to 17 or 18...

@vochitan90
Copy link

vochitan90 commented Aug 28, 2024

same here upgrading angular from 16 to 18 directly --- any updates?

image

@vochitan90
Copy link

vochitan90 commented Aug 28, 2024

Hi everybody,

When I read this DOC and check the last section: Need to Opt-out of Some Migrations?

You may need to update or delete what you DON'T want to run in migrations.json file.

In my case i removed some code to make it run (nx migrate --run-migrations again),

Take a look at the screenshot below:

image

Please tell me if it works for you! @harellevy @sbma24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants