digitalsparky / jekyll-minifier

Jekyll HTML/XML/CSS/JS Minifier utilising yui-compressor, and htmlcompressor
GNU General Public License v3.0
245 stars 25 forks source link

Dependecy Error despite all dependecies #35

Open EricWarnke opened 6 years ago

EricWarnke commented 6 years ago

Fresh install of github-pages. Jekyll 3.6.2 so my _config.yml says

plugins:
- jekyll-pug
- jekyll-minifier

Constantly getting

Dependency Error: Yikes! It looks like you don't have jekyll-minifier or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-minifier' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! 

I even ran gem install jekyll-minified -include-dependencies and no luck.

Any ideas?

billmix commented 6 years ago

I don't think you can use plugins with github pages.

EricWarnke commented 6 years ago

We aren't deploying to GitHub pages.

The other plugin works just fine.

kenman345 commented 6 years ago

have you run bundle install?

Also, check your gemfile.lock, maybe you have a dependency locked to a version lower than you need for jekyll-minifier's dependencies

kenman345 commented 6 years ago

also, your first comment says you ran gem install jekyll-minified -include-dependencies but you spelt jekyll-minifier wrong.

mannp commented 6 years ago

I am getting the same issue on macos gem 2.7.6; gem install jekyll-minifier.

All installs with no errors but errors on build or serve

kenman345 commented 6 years ago

I got some errors before when I had malformed JS files. I would copy out all your files and leave the most basic of a shell. Then build, then if it’s not erroring add back each file until you find out which isn’t proper.

mannp commented 6 years ago

Seems to work fine via the jekyll docker, so it must be a mac specific issue. Swapped to that.

Ryaaaan commented 5 years ago

Still getting the dependency issue described above :c

InnovativeInventor commented 4 years ago

I can confirm and reproduce in a Dockerfile.

warpdesign commented 4 years ago

I am having the same issue, on mac as well.