ElMassimo / ElMassimo/vite_ruby
yarn 3 Missing Executable
- Dominant language
- Ruby
- Stars
- 1.6k
- Forks
- 149
- Avg merge
- 5h 13m
- Merged PRs (30d)
- 2
Description
[troubleshooting section]: https://vite-ruby.netlify.app/guide/troubleshooting.html
- [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
```json
{
"devDependencies": {
"vite": "^4.4.0",
"vite-plugin-ruby": "^3.2.0"
}
}
```
.yarnrc.yml
```yaml
# # 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:_
```bash
$ 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_.
Contributor guide
Assessment
This issue has not been assessed yet.