volantis-x / hexo-theme-volantis

A Wonderful Theme for Hexo.
https://volantis.js.org
MIT License
1.98k stars 596 forks source link

【问题】:Waline ReferenceError: Waline is not defined #892

Closed ning0818 closed 11 months ago

ning0818 commented 1 year ago

检查清单

主题版本

6.x

复现地址

https://www.yuanning0818.tk 中的任意一篇文章

问题描述

Waline ReferenceError: Waline is not defined image

waline后端确定没问题,https://liuyan.yuanning0818.tk/

正常html引入也没问题,https://cdn2.chuqis.com/gh/ning0818/hexoblog@main/source/waline.html

<head>
  <!-- ... -->
  <link
    rel="stylesheet"
    href="https://unpkg.com/@waline/client@v2/dist/waline.css"
  />
  <!-- ... -->
</head>
<body>
  <!-- ... -->
  <div id="waline"></div>
  <script type="module">
    import { init } from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs';

    init({
      el: '#waline',
      serverURL: 'https://liuyan.yuanning0818.tk',
    });
  </script>
</body>

配置文件

站点配置文件

```yml 在这里粘贴替换 `blog/_config.yml` 中修改过的部分 ```

主题配置文件

[```yml 在这里粘贴替换 `themes/volantis/_config.yml` 中修改过的部分 ```](https://cdn2.chuqis.com/gh/ning0818/hexoblog@main/themes/volantis/_config.yml)https://[cdn2.chuqis.com/gh/ning0818/hexoblog@main/themes/volantis/_config.yml](https://cdn2.chuqis.com/gh/ning0818/hexoblog@main/themes/volantis/_config.yml)

环境信息

node.js & npm

``` 在这里粘贴替换 `node -v && npm -v` 输出的信息 ```

package.json

``` 在这里粘贴替换 `npm ls --depth 0` 输出的信息 ```


</details>
<h3>十分感谢!</h3>
inkss commented 1 year ago

主题去 jQuery,所以 $ 会报错,后面的错误估计也是这个的后续影响