-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with Vite #278
Comments
Set |
Thanks, that worked! For anyone else that comes across this, I was using 2.x already. |
Current 2.x default for
Is there any way I can detect Vite env setup easily and ensure it is |
I'm not 100% sure. I've been using the https://github.com/ElMassimo/vite_ruby gem to get Vite working but that wouldn't necessarily be true for everyone. Perhaps there's something useful there though. |
Hi! I've recently been exploring migrating our rails app from webpack/webpacker to Vite.
I'm getting an error whenever I try to import a specific route. I do not get the same error when using webpacker.
import { plannerAdminPagePreviewPath } from "@/app/javascript/routes";
undefined is not an object (evaluating 'object[part] = routes')
I've seen similar errors mentioned before but not in relation to Vite.
Do you know if I'm missing something? Is there a config step I've left out? Thanks!
The text was updated successfully, but these errors were encountered: