How to connect jquery plugins in es6?

import $ from 'jquery/dist/jquery.min'
import 'selectric/public/jquery.selectric.min'
window.$ = $;


.selectric is not a function
in the console and everywhere in the code

so with all libani
March 19th 20 at 08:48
1 answer
March 19th 20 at 08:50
Solution
Why specify the path to the file?
Why not call on the name of the package?
import $ from 'jquery'
import 'selectric'

Find more questions by tags JavaScript