我已经创建了一个 cms 页面并在其中添加了内容,它工作正常。然后我使用命令安装 vue-carousel-3d 并将组件和滑块代码添加到该文件中。添加组件的代码如下:
从'vue'导入Vue;从“vue-carousel-3d”导入 Carousel3d;
Vue.use(Carousel3d);
然后,当我单击该 cms 页面的链接时,它是打开的页面,并且还会显示滑块,我再次刷新同一页面,然后它会为我抛出 500 错误。pm2 日志中的错误是:
ReferenceError: 文档未定义在 addStyle (/root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/node_modules/vue-style-loader/lib/addStylesClient.js:120:1 ) 在 addStylesToDom (/root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/node_modules/vue-style-loader/lib/addStylesClient.js:104:1) 在 addStylesClient (/ root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/node_modules/vue-style-loader/lib/addStylesClient.js:58:1) 在 Object.5701 (/root/vue -storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/src/carousel-3d/Slide.vue?567f:9:1) 在webpack_require(/root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/webpack/bootstrap:19:1) 在 Object.9c17 (/root/vue-storefront/node_modules/vue-carousel -3d/dist/webpack:/carousel-3d/src/carousel-3d/Slide.vue?24f7:1:1) 在webpack_require (/root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack: /carousel-3d/webpack/bootstrap:19:1) 在 Module.fb15 (/root/vue-storefront/node_modules/vue-carousel-3d/dist/carousel-3d.common.js:3635:45) 在webpack_require ( /root/vue-storefront/node_modules/vue-carousel-3d/dist/webpack:/carousel-3d/webpack/bootstrap:19:1) 在/root/vue-storefront/node_modules/vue-carousel-3d/dist/ webpack:/carousel-3d/webpack/bootstrap:83:1
请问有人知道这个问题吗?