npx nx@latest init
nx g @nx/next:app my-new-app
if you use this repo, just run step two:
$ nx g @nx/next:app my-new-app
> NX Unable to resolve @nx/next:app.
unable to find tsconfig.base.json or tsconfig.json
Pass --verbose to see the stacktrace.
Following nrwl/nx#20574 (comment)
npm init -y
npm install --save-dev @nx/next
nx g @nx/next:app my-new-app
it works now, but I don't want my root folder to be a npm package.