jerryc127 / hexo-theme-butterfly

🦋 A Hexo Theme: Butterfly
https://butterfly.js.org
Apache License 2.0
6.8k stars 1.24k forks source link

[Bug]:未适配waline 3.0.1,无法显示评论系统 #1460

Closed PaperPlaneDeemo closed 4 months ago

PaperPlaneDeemo commented 4 months ago

使用的 Butterfly 版本? | What version of Butterfly are you use?

4.11.0

是否修改过主题文件? || Has the theme files been modified?

是 (Yes)

使用的瀏覽器? || What browse are you using?

Chrome

使用的系統? || What operating system are you using?

Windows

依賴插件 | Package dependencies Information

+-- hexo-deployer-git@4.0.0
+-- hexo-filter-auto-spacing@0.2.1
+-- hexo-generator-archive@2.0.0
+-- hexo-generator-category@2.0.0
+-- hexo-generator-index@3.0.0
+-- hexo-generator-search@2.4.3
+-- hexo-generator-sitemap@3.0.1
+-- hexo-generator-tag@2.0.0
+-- hexo-renderer-ejs@2.0.0
+-- hexo-renderer-kramed@0.1.4
+-- hexo-renderer-pug@3.0.0
+-- hexo-renderer-stylus@3.0.1
+-- hexo-server@3.0.0
+-- hexo-theme-landscape@1.0.0
+-- hexo-wordcount@6.0.1
`-- hexo@7.1.1

問題描述 | Describe the bug

waline升级到3.0.1重新部署后无法显示评论系统 配置文件中修改为 waline_js: https://cdn.jsdelivr.net/npm/@waline/client@2/dist/waline.js waline_css: https://cdn.jsdelivr.net/npm/@waline/client@2/dist/waline.css 可以正常显示2.15.8的walline评论系统 修改为3后,chrome报错: Uncaught SyntaxError: Unexpected token 'export' (at waline.js:70:20982) Uncaught (in promise) ReferenceError: Waline is not defined

出現問題網站 | Website

blog.nekof.com

jerryc127 commented 4 months ago

https://github.com/jerryc127/hexo-theme-butterfly/issues/1418