All threads / How do I import recurring_select in Rails 6?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I import recurring_select in Rails 6?

Devan Moylan asked in Javascript

I keep getting the following error:

Uncaught Error: Cannot find module 'recurring_select'
at webpackMissingModule (application.js:1)
at Module. (application.js:1)
at Module../app/javascript/packs/application.js (application.js:31)
at webpack_require (bootstrap:19)
at bootstrap:83
at bootstrap:83

In app/javascript/packs/application.js, I've tried:

//= require recurring_select
require("recurring_select")
import 'recurring_select'

I am having this same issue. Did you manage to solve it Devan?

I would like to know where these files are actually compiled from when you install a gem so I may be able to fix these issues myself in the future :)

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,558+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.