-
Notifications
You must be signed in to change notification settings - Fork 48
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
npx nx-ignore <app> not working on Vercel Build #86
Comments
I can confirm I am also experiencing this issue. |
I am also experience the same issue. There are two different errors on 2 different projects.
|
I believe the issue it which root folder you choose. If you choose the root folder of the monorepo in the project of vercel as root it works. But in a vercel project you can choose as root folder a subfolder . So the npx nx-ignore is running in the subfolder instead in top level. |
I'm only seeing builds showing a false positive. They should be deployed due to a change but aren't. |
I'm also having this problem. I've added
As @seloner mentioned, I have subfolders for the apps, this is how Vercel is working with monorepos. Anyone found a solution for it ? |
Try to cd out in the root folder when running npx nx-ignore . |
@seloner I've tried the following:
Maybe the the command that I'm using is not correct. |
fwiw, i think i fixed this problem by manually specifying the workspace root, which for some reason
the double |
Current Behavior
I make a change to a shared library our nx environment. The app with name connector uses that shared library. Locally npx nx-ignore connector returns that the build can proceed.
I commit my code to Gitlab and then Vercel starts to automatically build. I added in npx nx-ignore connector in the Vercel settings. However, when this script is triggered in the Vercel build it skips over it and says "The Deployment has been canceled as a result of running the command defined in the "Ignored Build Step" setting
Expected Behavior
I expect it to build because that app was affected as I could see that it was affected locally.
Environment
nx : 14.3.6
@nrwl/angular : Not Found
@nrwl/cypress : 14.3.6
@nrwl/detox : Not Found
@nrwl/devkit : 14.3.6
@nrwl/eslint-plugin-nx : 14.3.6
@nrwl/express : Not Found
@nrwl/jest : 14.3.6
@nrwl/js : 14.3.6
@nrwl/linter : 14.3.6
@nrwl/nest : Not Found
@nrwl/next : 14.3.6
@nrwl/node : 14.3.6
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : 14.3.6
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : 14.3.6
@nrwl/web : 14.3.6
@nrwl/workspace : 14.3.6
typescript : 4.7.4
Community plugins:
@jscutlery/semver: 2.23.4
The text was updated successfully, but these errors were encountered: