2

Im trying to implement google youtube api in my ruby on rails project as stated in youtube documentation https://developers.google.com/youtube/v3/code_samples/ruby#retrieve_my_uploads so this block of code require 'google/api_client' I get the following error "TypeError: Google is not a module"

Nasser
  • 23
  • 3

2 Answers2

4

This is the type of thing that will happen if you already have a class of your own called Google that isn't namespaced.

I had the same problem as you TypeError: Google is not a module and then upon further investigation discovered I had a class called Google that was getting loaded first.

Darren Hicks
  • 4,946
  • 1
  • 32
  • 35
0

I faces same Problem like this :- IndexOptions is not a module (TypeError)

After investigate the issues i found a trick to ressolve. replace module to class like this before to after ....

Vaibhav Jain
  • 305
  • 3
  • 8