Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
388 views
in Technique[技术] by (71.8m points)

javascript - Signature-pad on Rails 6 and Webpacker

Hi I installed with yarn the package [email protected] which I would like to add and use in a Rails 6 project with Webpacker.

However when trying to use the package it throws an error : Uncaught ReferenceError: SignaturePad is not defined

I added in application.js : require("signature_pad")

like other javascript files already added and working as expected.

I am not sure what I am missing.

Thanks in advance for answers and advices.

question from:https://stackoverflow.com/questions/65920487/signature-pad-on-rails-6-and-webpacker

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...