简体   繁体   English

IScroll未定义-FoundationPress&Webpack

[英]IScroll is not defined - FoundationPress & Webpack

I'have an error when using fullpage.js module with FoundationPress. 在FoundationPress中使用fullpage.js模块时出现错误。

My import : 我的导入:

import $ from 'jquery';
import 'slick-carousel';
import 'fullpage.js/vendors/scrolloverflow.min.js';
import 'fullpage.js';

I need scrolloverflow.min.js for this : create a scroll for the section/slide in case its content is bigger than the height of it 为此,我需要scrolloverflow.min.js:为节/幻灯片创建滚动,以防其内容大于其高度

But I still have an issus when compiling project: 但是我在编译项目时仍然有一个疑问:

Uncaught ReferenceError: IScroll is not defined

My js : 我的js:

$(document).ready(function() {
  $('#fullpage').fullpage({
    navigation: true,
    scrollOverflow: true,
    navigationPosition: 'right',
    anchors: ['home', 'page1', 'page2'],
    menu: '#myMenu'
  });
});

thanks for the help 谢谢您的帮助

查看本主题中可能的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM