Hi everyone is this sni…

less than 1 minute read

Hi everyone, is this snippet in nx.json supposed to enable local caching? or does caching only work with the nx-cloud task runner?

Responses:

Should look like this: "tasksRunnerOptions": { "default": { "runner": "@nrwl/workspace/tasks-runners/default", "options": { "cacheableOperations": ["build", "lint", "test", "e2e"] } } }

the important part is: "runner": "@nrwl/workspace/tasks-runners/default"

according to https://github.com/nrwl/nx/issues/2706#issuecomment-615467138 we dont need it anymore. but I suppse this is related to nx >= 9

ok thanks it works when adding the runner prop

If it’s not working without it, we should investigate

I am on 8.12.10, thats probably the reason?

oh.. maybe

yea looks like it. It runs properly on 9.3.0

yes, the runner default was set up in version 9.something

ok thanks guys!

I suppose, --with-deps is also not available in 8.x ?

wanted to test https://nx.dev/angular/guides/ci/incremental-builds with our repo

Looks like --with-deps was added in 9.1.0: https://github.com/nrwl/nx/releases/tag/9.1.0

core: add ability to run targets against project's deps (ff6b434)

Updated: