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

This package doesn't work with yarn pnp #586

Open
cbonnissent opened this issue Feb 25, 2021 · 5 comments
Open

This package doesn't work with yarn pnp #586

cbonnissent opened this issue Feb 25, 2021 · 5 comments

Comments

@cbonnissent
Copy link

(node:207355) UnhandledPromiseRejectionWarning: Error: Qualified path resolution failed - none of the candidates can be found on the disk.

Source path: /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/build/xmljs.node
Rejected candidate: /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/build/xmljs.node
Rejected candidate: /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/build/xmljs.node.js
Rejected candidate: /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/build/xmljs.node.json
Rejected candidate: /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/build/xmljs.node.node

Require stack:

  • /home/charles/git/anakeen-platform-4/.yarn/cache/bindings-npm-1.3.1-67cd858d43-73c8aa7dd8.zip/node_modules/bindings/bindings.js
  • /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/lib/bindings.js
  • /home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/index.js
  • /home/charles/git/anakeen-platform-4/module-validation/index.js
  • /home/charles/git/anakeen-platform-4/anakeen-cli/utils/moduleInfo.js
  • /home/charles/git/anakeen-platform-4/anakeen-cli/tasks/moduleInfo.js
  • /home/charles/git/anakeen-platform-4/anakeen-cli/commands/analyzeModule.js
  • /home/charles/git/anakeen-platform-4/.yarn/cache/yargs-npm-15.4.1-ca1c444de1-dbf687d6b9.zip/node_modules/yargs/index.js
  • /home/charles/git/anakeen-platform-4/anakeen-cli/index.js
    at internalTools_makeError (/home/charles/git/anakeen-platform-4/.pnp.js:34055:34)
    at resolveUnqualified (/home/charles/git/anakeen-platform-4/.pnp.js:35094:13)
    at resolveRequest (/home/charles/git/anakeen-platform-4/.pnp.js:35118:14)
    at Object.resolveRequest (/home/charles/git/anakeen-platform-4/.pnp.js:35190:26)
    at Function.external_module_.Module.resolveFilename (/home/charles/git/anakeen-platform-4/.pnp.js:34288:34)
    at Function.external_module
    .Module._load (/home/charles/git/anakeen-platform-4/.pnp.js:34153:48)
    at Module.require (internal/modules/cjs/loader.js:1025:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at bindings (/home/charles/git/anakeen-platform-4/.yarn/cache/bindings-npm-1.3.1-67cd858d43-73c8aa7dd8.zip/node_modules/bindings/bindings.js:84:48)
    at Object. (/home/charles/git/anakeen-platform-4/.yarn/unplugged/libxmljs-npm-0.19.7-fa6b6b2658/node_modules/libxmljs/lib/bindings.js:1:37)
    (node:207355) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    (node:207355) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@madelinecameron
Copy link

madelinecameron commented Mar 9, 2021

This package is broken for all node versions higher than 10.

The update was supposed to be back in early Feb, came to check in on the status and figured I'd respond.

#585

@NixBiks
Copy link

NixBiks commented Oct 12, 2021

So there are no workaround to use libxmljs with yarn pnp?

@cbonnissent
Copy link
Author

I have used a symbolic link to make it work but there are securities issues with this package so I use libxml2 that have the same api, work in pnp and have no security issue

@NixBiks
Copy link

NixBiks commented Oct 12, 2021

Do you have a link to libxml2? I can't find any with the same api

@cbonnissent
Copy link
Author

https://www.npmjs.com/package/libxmljs2

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

3 participants