-
Notifications
You must be signed in to change notification settings - Fork 258
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
Generating a new app using the Quickstart guide does not work #3031
Comments
When I left the
|
I believe the double link error is because Blacklight 7.33 is not compatible with importmap, which is what rails 7 installs by default. |
I'm trying to install Blacklight from the Quickstart guide as well. After starting the server, I received an error page like this: Sprockets::Rails::Helper::AssetNotPrecompiledError in Catalog#index I added the link and restarted, but saw another error with a different link to add. This repeated a total of 8 times until all of these links were in the manifest file. //= link blacklight/bookmark_toggle.js Finally the site will load, but it looks like plain HTML with no JS or CSS. These scripts are listed in the file ~/.asdf/installs/ruby/3.2.1/lib/ruby/gems/3.2.0/gems/blacklight-8.0.0/app/assets/javascripts/blacklight/blacklight.js.map, but it seems they're not being included or referenced properly somewhere. |
Follow-up: I restarted with a fresh environment and followed every step again from the beginning, with the same results. However, manually running Here's the output from the manual install, in case it sheds light on what was missing: blacklight-install-output.txt My environment: |
From what I gathered, when installing the "easy way" Just in case: if generating a minimal app the hard way (--minimal) then Error obtained
Commented template.demo.rb : # frozen_string_literal: true
gem 'blacklight', '>= 7.0'
# -> does 'blacklight:assets' but 'config/importmap.rb' not created
run "bundle install"
options = ENV.fetch("BLACKLIGHT_INSTALL_OPTIONS", '--devise --marc')
# -> does 'importmap:install' which creates 'config/importmap.rb'
generate 'blacklight:install', options
rake "db:migrate"
# -> Then we need to redo `rails generate blacklight:install` so 'blacklight:assets' is performed again Hard way : # does 'importmap:install' which creates 'config/importmap.rb'
rails new tmp_app
cd tmp_app
echo 'gem "blacklight", ">= 7.0"' >> Gemfile
bundle install
# does 'blacklight:assets' everything is great !
rails generate blacklight:install --devise --marc
rake db:migrate |
This should be fixed via #3110 |
When trying to create a new Blacklight app following the instructions in the Quickstart guide, you cannot start the rails application.
To reproduce
What happens
When you try to start it, you get a stacktrace that includes
@seweissman found that when
app/assets/config/manifest.js
was generated, it had a strange looking line without a line break, and that by taking only a portion of that line, the application workedBefore (not working):
After (working):
The text was updated successfully, but these errors were encountered: