I have done all kinds of research and tried many different things. I know this question has been answered many times, but none of the suggested solutions are working for me.
If you have this message and your nokogiri is out-of-date with the version available from the gem source, simply run bundle update nokogiri to get the new code and recompile. Your error should go away.