ElMassimo / vite_ruby

⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience
https://vite-ruby.netlify.app/
MIT License
1.28k stars 117 forks source link

Fix for "uninitialized constant ViteRuby::Manifest::OpenStruct" Error #452

Closed aki77 closed 3 months ago

aki77 commented 5 months ago

Description 📖

This pull request specifically targets an issue occurring only when encountering ViteRuby::MissingEntrypointError. The problem stems from the absence of require 'ostruct' in these error scenarios. This fix ensures that require 'ostruct' is included in the appropriate context, resolving the issue and preventing errors during ViteRuby::MissingEntrypointError occurrences.

ElMassimo commented 3 months ago

Thanks!