Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jQuery not found #49

Open
rysinal opened this issue Sep 29, 2022 · 2 comments
Open

jQuery not found #49

rysinal opened this issue Sep 29, 2022 · 2 comments

Comments

@rysinal
Copy link

rysinal commented Sep 29, 2022

index.html引入jQuery后,启动还是报错:

This dependency was not found:

* jQuery in ./node_modules/vue-giant-tree/dist/vue-giant-tree.common.js

To install it, you can run: npm install --save jQuery
@Lq-q
Copy link

Lq-q commented Sep 5, 2023

这个解决了吗

@XiayidanAlimu
Copy link

在安装了jQuery之后,我在vue.config.js里webpack配置plugins的部分添加了以下代码,解决了这个Reference Error: jQuery is not defined

new webpack.ProvidePlugin({
          $: "jquery",
          jQuery: "jquery",
          "window.jQuery": "jquery",
          "window.$": "jquery",
          Popper: ["popper.js", "default"]
      })

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants