Skip to content

5.1.2 of vite_plugin_ruby fails on build #586

@olepalm

Description

@olepalm
  • I have tried upgrading by running bundle update vite_ruby.
  • I have read the troubleshooting section before opening an issue.

Description 📖

After upgrading from 5.1.1 to 5.1.2 vite_plugin_ruby the build process fails.

Reproduction 🐞

Run bin/vite build --clear --mode=test

Expected behavior:
Vite build completes without error as on 5.1.1

Actual behavior:
Vite fails with a:

error during build:
TypeError: Cannot read properties of undefined (reading 'meta')
    at config (file:///(project_specific_path)/node_modules/vite-plugin-ruby/dist/index.js:223:32)

Refs 925cf98

Vite Ruby Info

Run bin/rake vite:info and provide the output:

vite_ruby: 3.9.1
vite_rails: 3.0.19
rails: 8.0.2.1
ruby: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin21]
node: v22.10.0
yarn: 1.22.22

installed packages:
[email protected] project_specific_path
├─┬ [email protected]
│ └── [email protected] deduped
└── [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: pending triageSomething doesn't seem to be working, but hasn't been verified

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions