-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ensureNxProject doesn't link together sub dependencies from the same (self) Nx project. #5639
Comments
Any update on that issue @FrozenPandaz @vsavkin ? I'm facing a similar problem as @Brian-McBride on my repo tinesoft/nxrocks#79 ... 😐 Having |
Facing the same problem, |
Hi @ronnetzer Can you elaborate your solution? |
@tinesoft Sure, I was using the patch and install methods to add the dependent packages after the ensure. So first you have the Then It works a little weird as you'll see the npm install running twice, and throws warning for the missing dependent package for the first run (by |
This issue is a duplicate of #4851, so I'm going to close it. There is some good info here but the link should still show 👍. I'm going to check on this stuff after working on local plugin support. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
In a plugin mono repo, I have a published package
@anatine/esbuild-decorators
and then a second package@anatine/esbuildnx
that requires it.When running the e2e tests utilizing the devkit tools
ensureNxProject
will result in the@anatine/esbuild-decorators
not being found.Expected Behavior
The
ensureNxProject
should properly link up all dependences within the monorepo. That or the docs should specify commands that will link these all properly.Steps to Reproduce
You can check out the test:
https://github.com/anatine/esbuildnx/blob/main/e2e/esbuildnx-e2e/tests/esbuildnx.spec.ts
TEMP FIX
For now, I've been using the
fs-extra
lib to create a symbolic link then removing it. Not ideal, but it works most of the time.Environment
Node : 16.0.0
OS : darwin x64
npm : 7.10.0
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.2.0
@nrwl/cypress : Not Found
@nrwl/devkit : 12.2.0
@nrwl/eslint-plugin-nx : 12.2.0
@nrwl/express : Not Found
@nrwl/jest : 12.2.0
@nrwl/linter : 12.2.0
@nrwl/nest : 12.2.0
@nrwl/next : Not Found
@nrwl/node : 12.2.0
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.2.0
@nrwl/web : Not Found
@nrwl/workspace : 12.2.0
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.1.5
The text was updated successfully, but these errors were encountered: