Skip to content
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

How integrate jquery.maskMoney with Rails 6 #267

Open
saferodrigo opened this issue Jul 17, 2020 · 1 comment
Open

How integrate jquery.maskMoney with Rails 6 #267

saferodrigo opened this issue Jul 17, 2020 · 1 comment

Comments

@saferodrigo
Copy link

saferodrigo commented Jul 17, 2020

Is it possible to use the jquery.maskMoney library with rails 6? If so, how to integrate into application.js? All my attempts to load the library with rails 6 were in vain.

I'm using:

rails 6
jquery 3.4.1
jquery-migrate 3.3.1
jquery.browser 0.1.0
@sonu1989
Copy link

I also tried a lot to fix this issue but didn't get any success.
I am using

rails 6.0.3.1
ruby 2.6.2

I followed the below steps.
$ yarn add jquery-maskmoney
after this package added successfully into yarn.lock and package.json

yarn.lock
Screenshot from 2020-08-21 13-12-03

package.json

Screenshot from 2020-08-21 13-12-15

Now require jquery-maskmoney in application.js app/javascript/packs/application.js
require("jquery-maskmoney")

Getting below error
Screenshot from 2020-08-21 13-19-12

Can you please help me to fix this issue?
If you need more information please let me know.
Thank you so much in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants