-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 6.0 uninitialized constant StripeEvent (NameError) #124
Comments
This appears to be coming from your Rails.application.routes.draw do
# ...
mount StripeEvent::Engine => "/webhooks/stripe"
# ...
end I don't have a Rails 6 project that uses StripeEvent at the moment. If for some reason the autoloader isn't finding require "stripe_event" Worst case, if there's some other load order issue, you might need to add a more explicit require "stripe_event/engine" Of course, I wouldn't expect either of these requires to be necessary either. |
Hey @rmm5t - I've got |
I am running into the same issue when I run My setup is as follows:
config/routes.rb: Rails.application.routes.draw do
mount Spree::Core::Engine, at: '/'
mount StripeEvent::Engine at: '/stripe/hook'
end
Spree::Core::Engine.routes.draw do
# more routes
end Adding the require statements continued to show the same error. Here is a trace:
|
I've been running into this issue more frequently the past few weeks, ever since I first implemented my Stripe work to handle subscriptions. Here is a trace of me trying to create a new controller.
Trace
The text was updated successfully, but these errors were encountered: