I maintain a local git-tracked version of my atlas app services app using App Configuration Files. I’ve been using the mongodb-realm-cli for years to push my changes to my atlas app services app, but the package has since become deprecated. So I decided it was time to transition to using the the new atlas-app-services-cli.
However, I’ve found an issue with the new CLI that wasn’t present with the old one.
In the functions
folder of my project, I have a package.json file to maintain my dependencies, as described in Atlas Documentation - External Dependencies. This does seem to work fine when pushing changes with the new CLI. However, if I install the node packages from the package.json on my local machine (and thus it creates a node_modules
folder within the functions
folder of my configuration files), then when I try to push my changes, it presents the error:
push failed: invalid app diff request
.
This is very annoying, since it means I have to delete my node_modules
folder every time I want to push my changes. Is this a bug with the CLI? Is there a way around this that doesn’t involve needing to delete my node_modules folder?