weixin_39859954
2020-12-06 20:29 阅读 82

Uncaught ReferenceError: IScroll is not defined

Hey.

I connect the script to my project in main.js:

js
import Vue from 'vue'
import 'fullpage.js/vendors/scrolloverflow'
import VueFullPage from 'vue-fullpage.js/dist/vue-fullpage.js'
import App from './App.vue'
Vue.use(VueFullPage)

new Vue({
  store, axios,
  render: h => h(App)
}).$mount('#app');

Then I collect the whole project: npm run build

When I open a web page in the console error:

Uncaught ReferenceError: IScroll is not defined at scrolloverflow.js:2148 at scrolloverflow.js:2143 at Object.a0a0 (scrolloverflow.js:2142) at r (bootstrap:78) at Module.56d7 (s-settings.svg:1) at r (bootstrap:78) at Object.0 (bootstrap:151) at r (bootstrap:78) at e (bootstrap:45) at bootstrap:151

what am I doing wrong? or is it a bug of some kind?

该提问来源于开源项目:alvarotrigo/vue-fullpage.js

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

4条回答 默认 最新

  • weixin_39997300 weixin_39997300 2020-12-06 20:29

    Please provide an isolated reproduction in Codepen, with no CSS or JS files external to fullPage.js and the minimum amount of HTML code. Use empty sections unless strictly necessary for the reproduction.

    点赞 评论 复制链接分享
  • weixin_39859954 weixin_39859954 2020-12-06 20:29

    by the way, if I run npm run serve, everything works

    点赞 评论 复制链接分享
  • weixin_39997300 weixin_39997300 2020-12-06 20:29

    We will keep waiting for the isolated reproduction :)

    点赞 评论 复制链接分享
  • weixin_39997300 weixin_39997300 2020-12-06 20:29

    Closed until an isolated reproduction is provided as detailed in the reporting issues guidelines and the issue skeleton.

    点赞 评论 复制链接分享

相关推荐