nx-firebase
nx-firebase copied to clipboard
Missing dependency for @angular-devkit/schematics
I added nx-firebase to an existing Nx repo with a react app in it. When trying to run the build command for the firebase app it fails with the error:
Cannot find module '@angular-devkit/schematics'
If I manually add the package to my projects dev-dependencies the build script works.
Ran into the same issue with an existing Nx repo with a next.js app.
Fixed it manually by running npm i @angular-devkit/schematics --save-dev
I believe this would have been a legacy Nx issue, the latest Nx versions have a new CLI that decorates the angular CLI differently, and the latest version of the plugin build executor no longer calls convertNxExecutor
which I think has something to do with the angular devkit.