Error: Qualified path resolution failed - none of the candidates can be found on the disk

Viewed 2571

I am getting the following error when trying to run a typescript script:

Error: Qualified path resolution failed - none of the candidates can be found on the disk.

Source path: /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/util
Rejected candidate: /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/util
Rejected candidate: /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/util.js
Rejected candidate: /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/util.json
Rejected candidate: /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/util.node

Require stack:
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/config.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/requester.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/index.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/cache/index.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/index.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/sources/amberdata/dist/index.js
- /Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/sources/amberdata/[eval]
    at internalTools_makeError (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:34005:34)
    at resolveUnqualified (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:35044:13)
    at resolveRequest (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:35068:14)
    at Object.resolveRequest (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:35140:26)
    at Function.external_module_.Module._resolveFilename (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:34238:34)
    at Function.external_module_.Module._load (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/.pnp.js:34103:48)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/Users/silaslenihan/Desktop/Chainlink/external-adapters-js/packages/core/bootstrap/dist/lib/external-adapter/config.js:4:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30) 

I think something is up with my yarn installation but I can't seem to figure it out. I've tried clearing the yarn cache manually as well as by running to following commands. Nothing seems to work. I've tried the following commands.

yarn add -D webpack-cli@3
yarn cache clean --all
yarn install

I've also confirmed I'm on the right node version, I really can't think of anything else to do.

1 Answers
return Object.defineProperties(new Error(message), {
                                 ^
Error: Qualified path resolution failed: we looked for the following paths, but none could be accessed.

Source path: /Users/test-user/Documents/test_repo/my/project/school/authorizer.ts
Not found: /Users/test-user/Documents/test_repo/my/project/school/authorizer.ts
  • Seems like you're hitting those command that doesn't exist or you're hitting but the file path is not correct to the command

Example: In the package.json scripts section your command looks like this

"deploy:dev": "cdk deploy auth-stack-dev",

if this is the correct command and you're hitting the correct source it will not give you an error but if it's not correct then you will receive a PNP error same as above mentioned

Related