Skip to content
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

Cannot find installed dependency #1382

Closed
slavafomin opened this issue Jul 13, 2019 · 1 comment
Closed

Cannot find installed dependency #1382

slavafomin opened this issue Jul 13, 2019 · 1 comment

Comments

@slavafomin
Copy link

Hello!

First of all, thank you for this great tool and your hard work.

However, I've started to get the following error out of the blue recently:

ERROR: Internal Error: Cannot find installed dependency "@babel/runtime-corejs3" in
"/home/sfomin/acme/common/temp/node_modules/.local/%2Fhome%2Fsfomin%2Facme%2Fcommon%2Ftemp%2Fprojects%2Facme.tgz/node_modules"
You have encountered a software defect. Please consider reporting the issue to the maintainers of this application.

I don't have the mentioned /home/sfomin/acme/common/temp/node_modules/.local/%2Fhome%2Fsfomin%2Facme%2Fcommon%2Ftemp%2Fprojects%2Facme.tgz/node_modules path,
but I do have the following one: /home/sfomin/acme/common/temp/node_modules/.local/%2Fhome%2Fsfomin%2Facme%2Fcommon%2Ftemp%2Fprojects%2Facme.tgz_@babel+core@7.5.4+webpack@4.35.3

I dont really understand what is happening here, but obviously it's looking for something which is not there.

This happens during the "linking" phase, after running rush update --purge.

The manifest of the package in question does not contain anything special, just normal dependencies:

{
  "name": "acme",
  "version": "1.0.0",
  "main": "dist/index.cjs.js",
  "peerDependencies": {
    "react": "^16.0.0",
    "react-dom": "^16.0.0"
  },
  "dependencies": {
    "@babel/runtime-corejs3": "^7.5.4",
    "focus-visible": "^5.0.2",
    "js-cookie": "^2.2.0",
    "url-polyfill": "^1.1.6"
  },
  "devDependencies": {
    "@types/js-cookie": "^2.2.2",
    "@types/node": "^12.6.2",
    "@types/react": "^16.8.23",
    "@types/react-dom": "^16.8.4",
    "babel-loader": "^8.0.6",
    "css-loader": "^3.0.0",
    "http-server": "^0.11.1",
    "npm-run-all": "^4.1.5",
    "postcss-loader": "^3.0.0",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "sass-loader": "^7.1.0",
    "style-loader": "^0.23.1",
    "ts-loader": "^6.0.4"
  }
}

Could you elaborate on this please? Thanks!

@slavafomin
Copy link
Author

I believe this is duplicate of #1347

Updating to the latest Rush 5.10.1 and pnpm 3.5.7 fixed the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant