jquery / sizzle

A sizzlin' hot selector engine.
https://sizzlejs.com
Other
6.29k stars 951 forks source link

Help needed: Import sizzle into Vue-Cli 3 #425

Closed katerlouis closed 6 years ago

katerlouis commented 6 years ago

It's crazy– I just can't get Sizzle to work in my vue-cli 3 setup.

And I don't find on the internet how to do so– Apologies if this is such a trivial thing to ask.

I successfully installed Sizzle as a dependency vue-cli project like so:

npm install sizzle -S

and my package.json correctly reflects that. image

Where

import $ from "jquery"

works in my App.vue, I can't get a similar thing to work with Sizzle–

Could you please help me?

mgol commented 6 years ago

The import works fine for me on codesandbox.io: https://codesandbox.io/s/zkk7jvx2lx (open the DevTools console and you'll see Sizzle logged). Hence, it looks like some configuration problem on your side.