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
With corepack enabled and packageManager set (to pnpm in my case), running rake assets:precompile will throw a warning (but continue):
/Users/jpr/.asdf/installs/nodejs/20.14.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22373
throw new UsageError(`This project is configured to use ${result.spec.name} because ${result.target} has a "packageManager" field`);
^
UsageError: This project is configured to use pnpm because /Users/jpr/src/Rhino/mono-test/rhino-project-template_rails_mono/package.json has a "packageManager" field
at Engine.findProjectSpec (/Users/jpr/.asdf/installs/nodejs/20.14.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22373:21)
at async Engine.executePackageManagerRequest (/Users/jpr/.asdf/installs/nodejs/20.14.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22404:24)
at async Object.runMain (/Users/jpr/.asdf/installs/nodejs/20.14.0/lib/node_modules/corepack/dist/lib/corepack.cjs:23096:5) {
clipanion: { type: 'usage' }
}
bundle update vite_ruby
.Description 📖
With corepack enabled and packageManager set (to pnpm in my case), running rake assets:precompile will throw a warning (but continue):
I have traced this to:
vite_ruby/vite_ruby/lib/tasks/vite.rake
Line 92 in a3182a9
Because it runs the yarn command (when it is not installed), triggering the warning. I suspect that yarn call should either:
Reproduction 🐞
Vite Ruby Info
Run
bin/rake vite:info
and provide the output:Logs 📜
Screenshots 📷
The text was updated successfully, but these errors were encountered: