-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Running installer on clean Rails 5.2 fails with TypeError: no implicit conversion of nil into String #133
Comments
Thanks for the report! Will try to get behind what's wrong |
@julianrubisch Hey! Did you found out what happened? (Trying to solve it) |
https://github.com/stimulusreflex/futurism/blob/master/lib/tasks/futurism_tasks.rake#L8-L13 This is not covering all of the possible locations the file could be, it either needs more paths or simply ask for user input if no file was found. I fixed the issue by manually adding the file path ( I would still advise doing a manual installation because this auto-install is assuming some stuff, which might not be the case for everyone. |
In fairness, this was all written before importmaps-rails, jsbundling-Rails etc. we‘re just in the process of streamlining all StimulusReflex and CableReady installers, futurism will come next 🤞 |
Nice find @SpaYco, I was looking in the wrong place. I guess this is the root of my issue? Rails 5.2 didn't use Webpacker by default, so |
It definitely should and will. We’re just trying to reuse as much as possible between CR, SR, futurism and others cc @marcoroth |
Bug Report
I'm trying to add Futurism to a legacy Rails app running Rails 5.2, and I'm running into problems. Trying to recreate in a new 5.2 app has the same issues.
Describe the bug
Running
bin/rails futurism:install --trace
gives this error:Trace
To Reproduce
Create a new Rails 5.2 install with actioncable, then bundle add futurism and bin/rails futurism:install
Expected behavior
I expected it to install, or to give an error message with more information on what went wrong.
Screenshots or reproduction
[see above]
Versions
Futurism
External tools
Browser
[not applicable]
The text was updated successfully, but these errors were encountered: