expo-community / expo-server-sdk-ruby

A Ruby library for sending push notifications with Expo's notification service
MIT License
95 stars 53 forks source link

NameError: uninitialized constant Exponent #31

Closed davidray closed 4 years ago

davidray commented 4 years ago

I've installed the gem in my rails app and this code:

client = Exponent::Push::Client.new

results in NameError: uninitialized constant Exponent.

If I try to require it, I get this error:

LoadError: cannot load such file -- exponent-server-sdk

It's possible I'm doing something stupid here. Any help will be appreciated.

davidray commented 4 years ago

I don't know what caused this, but I rebooted my computer and it went away.

fabiobarboza7 commented 3 years ago

I don't know what caused this, but I rebooted my computer and it went away.

It's just needed to restart the server to allow ./config initializers be loaded again.