Open AlexeyMatskevich opened 1 week ago
Hey @AlexeyMatskevich, sorry you're running into this! I just created a new Rails app following the steps you provided, and I am unable to reproduce the issue. I pushed up the app, can you take a look and see if this works on your machine? https://github.com/camertron/vc_test_app
Can't reproduce the installation from https://primer.style/guides/rails
Install the primer_view_components gem and @primer/view-components packages
Add the following lines to the very bottom of config/application.rb:
Add your node_modules/ directory to Propshaft's load path by adding the following line to config/application.rb:
config.assets.paths << Rails.root.join("node_modules")
My file:Add the following inside the
tags in app/views/layouts/application.html.erb. These lines request primer_view_component's JavaScript code, shared CSS styles from @primer/css, primer_view_component's CSS styles, and a bunch of CSS variables from @primer/primitives. Notice we're also pulling in several color themes named "light" and "dark." The full list of supported themes is available in the Primer CSS documentation.My file:
My result:
I'm doing something wrong, can anyone help me deal with this?