【发布时间】:2019-08-22 07:09:45
【问题描述】:
我正在使用parcel 并遇到使用Jelly.js 并尝试按照说明导入
import $ from "jquery";
import 'jquery-scrollify';
import { Jelly } from 'jelly.js';
$(function(){
var options = {
paths: '#circle-path', // Shape we want to draw
pointsNumber: 25, // Number of points
maxDistance: 4, // Max distance among points
color: '#ff0019',
opacity: 0.27,
// centroid: '.centroid-text' // Element to move accordingly with the centroid of the shape
// debug: true // Uncomment this to see the points
};
/* Initializing jelly */
var jelly = new Jelly('.jelly-canvas', options);
});
但它会抛出这个错误
Uncaught ReferenceError: Jelly is not defined
有什么想法吗?
【问题讨论】:
标签: javascript webpack ecmascript-6 parcel