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'

Join the discussion

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

Join 33,665+ 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.