Uncaught TypeError: Waline is not a constructor 错误 #609
Answered
by
akatsukiro
akatsukiro
asked this question in
Q&A
-
使用Waline系统。 最开始是本地测试正常,编译上传后评论无法加载,控制台报 然后是今天想捣鼓捣鼓,结果本地也报这个错误了。 这是编译后的对应的html语句: <script>
new Waline({"avatar":"robohash","dark":"html[data-scheme=\"dark\"]","el":"#waline","emoji":["https://unpkg.com/@waline/[email protected]/weibo","https://unpkg.com/@waline/[email protected]/bilibili"],"lang":"zh-CN","locale":{"admin":"Admin"},"pageview":true,"requiredMeta":["name","email"],"serverURL":"https://waline.my.site"});
</script> 应该是我那里配置错了?但是我自查了一段时间查不出来,只好希望大佬们能帮我看看,谢谢。 |
Beta Was this translation helpful? Give feedback.
Answered by
akatsukiro
May 17, 2022
Replies: 1 comment
-
我把引入的文件改成了Waline官方文档中提供的链接,但其实是两个文件是不一样的,所以出现了这个错误。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
akatsukiro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我把引入的文件改成了Waline官方文档中提供的链接,但其实是两个文件是不一样的,所以出现了这个错误。
至于前两天无法加载,应当是 cdn.jsdelivr.net 无法访问导致的。
抱歉。