JoeyBling / vuepress-plugin-helper-live2d

VuePress集成Live2D看板娘. Live2D plugin for VuePress.
https://zhousiwei.gitee.io/ibooks/
MIT License
42 stars 9 forks source link

vuepress无法使用该插件 #2

Closed JQiue closed 4 years ago

JQiue commented 4 years ago

❓问题

使用npm或yarn安装该插件到项目中编译会出现错误 warning An error was encountered in plugin "vuepress-plugin-helper-live2d" 创建一个干净的vuepress项目也是如此

在config.js中的配置如下

plugins: [
    [
      'vuepress-plugin-helper-live2d',
      {
        live2d: {
          enable: true,
          model: 'hibiki',
          display: {
            position: "right",
            width: 135,
            height: 300,
            hOffset: 65,
            vOffset: 0,
          },
          mobile: {
            show: false
          },
          react: {
            opacity: 0.8
          }
        }
      }
    ]
  ]

🐥环境 & 设置

Node.js & npm version

node 11.11.0
npm 6.7.0
yarn 1.22.4
JoeyBling commented 4 years ago

方便贴下报错的详细信息吗?

JQiue commented 4 years ago

很抱歉的是,控制台只提示这么一段信息

JoeyBling commented 4 years ago

主页有我联系方式,你加下我,如果方便远程调试下

JoeyBling commented 4 years ago

缺少vuepress关键模块,参考https://github.com/JoeyBling/vuepress-theme-yilia-plus/issues/1

解决方法

npm install vuepress --save