Fail to deploy Github Pages to Vercel

I tried to deploy Jekyll on my Github Pages to Vercel, but it failed because I used Jekyll-feed, even though I added ‘Jekyll-feed’ to Gemfile.

Dependency Error: Yikes! It looks like you don’t have jekyll-feed or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. If you’ve run Jekyll with bundle exec, ensure that you have included the jekyll-feed gem in your Gemfile as well. The full error message from Ruby is: ‘cannot load such file – jekyll-feed’ If you run into trouble, you can find helpful resources at Redirecting…!

Also, I don’t have Ruby and Jekyll programs deployed on my point computer. Should I deploy them to solve this problem?

You need to add a Gemfile which specifies your gems.

And maybe you need to add an install step. I know how Vercel works.

Here are templates for Vercel

Click on Jekyll

Or go to the code and click the Vercel button on GitHub

Once you have a working site from a template then you can start customizing it or add code to your original project.

Can you share your repo link?

Here is the Ruby section in Vercel docs

Yes I’d recommend having Jekyll and Ruby on your computer. It makes changes and debugging much faster as you can have web server locally reflecting your code immediately and giving errors in your logs.

Which saves having to commit and push and wait a few minutes for a CI service to deploy and tell if you if it broke.

I’d also recommend Netlify as they handle installation for you based on what files you have. And it has more freedom than GH Pages standard.

The Jekyll docs link to the same template that I did.

But you may find something else useful like the Netlify link

Thanks for your prompt reply! Feel the warmth of the community. I have fixed the problem and have to add gem 'jekyll-feed'to gemfile and

  - jekyll-feed

to _config.yml for it to work.

1 Like

That’s great.

You can take it out of config if you do this (and not on GH Pages). All plugins here in the group will be enabled.

gem "jekyll", "~> 4.2"

group :jekyll_plugins do
    gem 'jekyll-feed'