Doing this:
import $ from 'jquery';
Shows the error
The $ prefix is reserved, and cannot be used for variable and import names svelte(illegal-declaration)
                I noticed that if JQuery is already available globally, then you can access it via window.$ instead of just $ and the svelte compiler won't complain.
You can just use import as syntax:
import * as $j from 'jquery';
Or as anyName  that you can use
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With