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

xo not work with pnpm #270

Closed
nampdn opened this issue Nov 24, 2017 · 1 comment
Closed

xo not work with pnpm #270

nampdn opened this issue Nov 24, 2017 · 1 comment

Comments

@nampdn
Copy link

nampdn commented Nov 24, 2017

Hi,
I try to move from yarn to pnpm
Everything should work fine except xo can't execute node corrrectly.

It can't require any file in current project:

src/index.js:1:1
  ✖  1:1   Resolve error: unable to load resolver "node".                import/order
  ✖  1:1   Resolve error: unable to load resolver "node".                import/no-unresolved
  ✖  1:1   Resolve error: unable to load resolver "node".                import/no-extraneous-dependencies
  ✖  2:25  Unable to resolve path to module ./cronjob.                   import/no-unresolved
  ✖  3:25  Unable to resolve path to module ./watcher.                   import/no-unresolved

or in node_modules:

  src/helper/thumbnail/parse-path.js:1:1
  ✖  1:1   Resolve error: unable to load resolver "node".                import/order
  ✖  1:1   Resolve error: unable to load resolver "node".                import/no-unresolved
  ✖  1:1   Resolve error: unable to load resolver "node".                import/no-extraneous-dependencies
  ✖  1:25  Unable to resolve path to module @write-for-christ/fs-array.  import/no-unresolved
  ✖  2:7   walker is assigned a value but never used.                    no-unused-vars
  ✖  2:24  Unable to resolve path to module async-walk.                  import/no-unresolved
@sindresorhus
Copy link
Member

pnpm does some weird things with symlinking that is not always compatible. The error is coming from https://github.com/benmosher/eslint-plugin-import, so better to open an issue over there.

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

2 participants