I am using Yarn to install some libraries into my application on Rails.
I recently installed ldcolorpicker but it's like my application can't reach it.
I used the appropriate command given by Yarn yarn add @loadingio/ldcolorpicker and imported on my application.js too using //= require @loadingio/ldcolorpicker/index.js. But it's like the import was not successfully done, because my js console gives me:
Uncaught TypeError: ldcolorpicker.init is not a function
What I am doing wrong?
Update: It is like I cannot import in my
application.jspackages with@. I also added the newamcharts4with the same issue too. Any advice?