-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
浏览器报:Uncaught (in promise) ReferenceError: initWidget is not defined at autoload.js:36:3 #176
Comments
可以提供你的网站地址吗?看图片比较难定位问题的具体原因 |
同样报错,也是本地运行的,感谢大佬帮忙看看文件结构:
前端文件:
报错的代码是这里:
|
同样遇到问题,已经解决。 我的解决方法是在根目录下的 改完后: export default {
input: 'build/waifu-tips.js',
output: {
name: 'live2d_widget',
file: 'dist/waifu-tips.js',
format: 'iife',
},
plugins: [
nodeResolve(),
string({
include: '**/*.svg',
}),
terser(),
],
context: 'this',
}; |
@panedioic 你好,我目前也遇到了類似了,但照著你的方法將input項改為build/waifu-tips.js依然會報此問題耶 |
@whitebear13579 你也是 |
我上面的回复有一些问题。应该修改的是 你还可以修改 |
試了一下,發現 |
@whitebear13579 |
我所做的操作是将 'live2d_path' 改为我本地的资源路径
The text was updated successfully, but these errors were encountered: