-
Notifications
You must be signed in to change notification settings - Fork 604
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
[rush] Internal Error reported when using "file:C:/..." as dependency version in package.json #1228
Comments
The At the very least, we should probably issue a better error message, though. |
@octogonz is this true for all
|
We should document this better. No, it's not supported. Its behavior is buggy in every package manager, and understandably so because there is no straightforward way to detect a change that requires reinstallation. Also, for this case Rush already automatically links your local projects. |
This was all I needed to read. haha |
If the For example, what if I fork a project and make some changes, then want to test the implementation? Normally, I would just link to that repo in one of my other projects that uses it; probably the same project I was using it in that made me realize something needed to change. This has occurred recently, and with a package that was included as sub-dependencies in my project. In order to make sure the new version was used in all of the sub-dependencies, I used the |
I guess my issue is a little different. The error I get is this: ERROR: Cannot parse PNPM shrinkwrap version specifier: "file:/path/to/project" for "<package>" Separate issue, maybe? |
Experienced Rush users typically solve this by manually creating symlinks in the node_modules folder. For example with PNPM:
However we've avoided documenting this, because there are complicated rules about whether it will work or not. And when you're done, you have to remember to run Instead, something we could "officially" recommend is to add the project to your I've been wanting to offer a better solution, but I believe #1553 will eliminate or at least transform the problem significantly. We're hoping to have that done by end of year. It's at the top of our roadmap. |
I've been searching the documentation but couldn't find explicitly stated that |
I have a similar problem. I have a packages/portal/package.json "dependencies": {
...
"@captor/quantlib-wasm": "file:../../captor-quantlib-wasm-1.19.4.tgz", First time I do a rush update Everything works fine. Second time, I get: > rush update
Rush Multi-Project Build Tool 5.62.3 - https://rushjs.io/
Node.js version is 16.13.1 (LTS)
Starting "rush update"
Trying to acquire lock for pnpm-6.30.1
Acquired lock for pnpm-6.30.1
Found pnpm version 6.30.1 in /some_user/.rush/node-v16.13.1/pnpm-6.30.1
Symlinking "/somepath/repo/common/temp/pnpm-local"
--> "/some_user/.rush/node-v16.13.1/pnpm-6.30.1"
Transforming /somepath/repo/common/config/rush/.npmrc
--> "/somepath/repo/common/temp/.npmrc"
Updating temp projects in /somepath/repo/common/temp/projects
ERROR: Cannot parse PNPM shrinkwrap version specifier: "file:../../captor-quantlib-wasm-1.19.4.tgz" for "@captor/quantlib-wasm"
Is this not suppose to work? |
I have a package referencing a some local packages like so:
when running rush update it outputs:
The text was updated successfully, but these errors were encountered: