You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
When trying to use oclif with a package manager such as Yarn 2, the following error message occurs:
(node:621147) Error Plugin: @maintainer/package: could not find package.json with {
type: 'core',
root: '/path/to/project/root',
name: '@oclif/plugin-help'
}
module: @oclif/[email protected]
task: loadPlugins
plugin: @maintainer/package
root: /path/to/project/root
See more details with DEBUG=*
Digging into the code, it seems pretty obvious that this is because of the fact that this package looks for plugins in node_modules, but Yarn 2 doesn't use node_modules.
As per the Yarn 2 documentation, this is somewhat easily solved with a change to utilize resolve@>=1.9. Any pitfalls or caveats existing contributors/maintainers can think of?
Yes, Yarn 2 is in RC stage but it will not be so eventually and this issue will need to be resolved. (Heh.)
I'm most probably going to try to fix this myself so I can obstinately use the new modules system, but tracking issues is important so I'm doing this first.
The text was updated successfully, but these errors were encountered:
When trying to use oclif with a package manager such as Yarn 2, the following error message occurs:
Digging into the code, it seems pretty obvious that this is because of the fact that this package looks for plugins in
node_modules
, but Yarn 2 doesn't usenode_modules
.config/src/plugin.ts
Lines 109 to 135 in 07a0670
As per the Yarn 2 documentation, this is somewhat easily solved with a change to utilize
resolve@>=1.9
. Any pitfalls or caveats existing contributors/maintainers can think of?Yes, Yarn 2 is in RC stage but it will not be so eventually and this issue will need to be resolved. (Heh.)
I'm most probably going to try to fix this myself so I can obstinately use the new modules system, but tracking issues is important so I'm doing this first.
The text was updated successfully, but these errors were encountered: