Electron: jQuery is not defined

前端 未结 19 2509
我在风中等你
我在风中等你 2020-11-22 06:20

Problem: while developing using Electron, when you try to use any JS plugin that requires jQuery, the plugin doesn\'t find jQuery, even if you load in the correct path using

19条回答
  •  灰色年华
    2020-11-22 06:50

    Just install Jquery with following command.

    npm install --save jquery
    

    After that Please put belew line in js file which you want to use Jquery

    let $ = require('jquery')
    

提交回复
热议问题