vite_ruby
vite_ruby copied to clipboard
yarn 3 Missing Executable
- [x] I have tried upgrading by running
bundle update vite_ruby. - [x] I have read the troubleshooting section before opening an issue.
Description 📖
Provide a clear and concise description of what the bug is.
In yarn 2-3, there is a new Plug'n'Play mode to install packages outside of node_modules/. vite-plugin-ruby doesn't seem compatible with this mode. I always get the missing executable error, which I do not receive with the normal, node-modules mode.
Reproduction 🐞
Please provide a link to a repo that can reproduce the problem you ran into.
Vite Ruby Info
Run bin/rake vite:info and provide the output:
Logs 📜
If not providing a reproduction:
package.json
{
"devDependencies": {
"vite": "^4.4.0",
"vite-plugin-ruby": "^3.2.0"
}
}
.yarnrc.yml
# # Instead of:
# nodeLinker: node-modules
nodeLinker: pnp
Output
Run DEBUG=vite-plugin-ruby:* bin/vite dev or DEBUG=vite-plugin-ruby:* bin/vite build and provide the output:
$ yarn set version 3.6.3
$ yarn install
$ ./bin/vite info
bin/vite present?: true
vite_ruby: 3.3.4
vite_rails: 3.0.15
rails: 7.0.4.2
node: v20.5.1
npm: 10.1.0
yarn: 3.6.3
pnpm:
ruby: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [x86_64-darwin22]
❌ Check that vite and vite-plugin-ruby have been added as development dependencies and installed.
$
Screenshots 📷
Provide console or browser screenshots of the problem.