相关疑难解决方法(0)

如何在parcel(bundler)中使用jQuery和jQuery-ui?

我通过npm安装了jquery(3.2.1)和jquery-ui-dist(1.12.1).(它们不包含在html中的脚本标记中)

在客户端脚本中我使用:

window.$ = require('jquery');// plain jQuery stuff works fine
import 'jquery-ui-dist';     // breaks whole jQuery, with Error (missing module 8)
Run Code Online (Sandbox Code Playgroud)

jquery jquery-ui parcel

17
推荐指数
1
解决办法
6797
查看次数

标签 统计

jquery ×1

jquery-ui ×1

parcel ×1