Error during build: You must supply options.input to rollup #459
-
I followed these very neat install instructions: https://vite-ruby.netlify.app/guide/rails.html but unfortunately I'm running into an error when starting a dev server. It tells me to run
Does anyone know which Some quick context, I'm working on a rather large and complex, monolithic Rails app. Which in the past I've painstakingly moved from using Sprockets to Webpacker and from Webpacker to JS bundling with ESbuild. While our current implementation works, it always felt a little sub-optimal. We're missing out on the easy live reload, HMR, etc. I've took 2 stabs at moving to using vite in the past but encountered different issues and had to move on, to do other stuff. I hope, with a little help of this community, the third time's going to be the charm. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Augustin! You shouldn't need to provide Try debugging the dev server, to verify that your configuration is correct, and that you have entrypoints to be bundled. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. I thought as much about the input, but still was confused. Turns out indeed I did not correctly update the |
Beta Was this translation helpful? Give feedback.
Hi Augustin!
You shouldn't need to provide
input
, as that's inferred byvite-plugin-ruby
from your Entrypoints.Try debugging the dev server, to verify that your configuration is correct, and that you have entrypoints to be bundled.