-
Notifications
You must be signed in to change notification settings - Fork 365
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
yarn 2 Qualified path resolution failed - none of the candidates can be found on the disk. #1866
Comments
a workaround is use the full name |
I am having the same issue with the mongodb connector. It is not resolved by using the connectors full name. Cannot start the application. Error: Qualified path resolution failed - none of the candidates can be found on the disk.
Source path: C:\Users\jakef\code\examplerepo\.yarn\cache\loopback-datasource-juggler-npm-4.26.0-67d3cf0749-75cc866df5.zip\node_modules\loopback-datasource-juggler\lib\connectors\loopback-connector-mongodb
Rejected candidate: C:\Users\jakef\code\examplerepo\.yarn\cache\loopback-datasource-juggler-npm-4.26.0-67d3cf0749-75cc866df5.zip\node_modules\loopback-datasource-juggler\lib\connectors\loopback-connector-mongodb
Rejected candidate: C:\Users\jakef\code\examplerepo\.yarn\cache\loopback-datasource-juggler-npm-4.26.0-67d3cf0749-75cc866df5.zip\node_modules\loopback-datasource-juggler\lib\connectors\loopback-connector-mongodb.js
Rejected candidate: C:\Users\jakef\code\examplerepo\.yarn\cache\loopback-datasource-juggler-npm-4.26.0-67d3cf0749-75cc866df5.zip\node_modules\loopback-datasource-juggler\lib\connectors\loopback-connector-mongodb.json
Rejected candidate: C:\Users\jakef\code\examplerepo\.yarn\cache\loopback-datasource-juggler-npm-4.26.0-67d3cf0749-75cc866df5.zip\node_modules\loopback-datasource-juggler\lib\connectors\loopback-connector-mongodb.node |
do you have installed mongodb connector? try using .yarnrc.yml to specify the dependency |
Yes, I do. The issue lies in the way datasource-juggler tries to look up multiple versions of the connector by looking in different locations and fails entirely when it fails on any of the locations it tries to look up. See this pull request. |
Another option is to pass the connector object instead of the module name. // LB4 datasource config
const config = {
connector: require('loopback-connector-mongodb'),
// ...
}; |
I've upgraded to yarn 2.4.1 and hit this irreconcilable error in CI; these problems are maddening and time-consuming for those of us not native to the javascript frontend world:
This comes from the following line in
Somehow it's getting confused by the |
@instantlinux if the issue only arises in CI, check if your ignore file (e.g. In my case, I had I arrived here via Google, so maybe it’s not related to this issue, but it cost me a few hours to figure out, so I figured I’d share, just in case. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
looks like the problem is in the following code
trying to check for rest file in connector folder but there no exists
i fixed it with
The text was updated successfully, but these errors were encountered: