Skip to content
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

code-highlight.js:228报错“__ is not defined” #915

Closed
letao9370 opened this issue Aug 19, 2024 · 3 comments
Closed

code-highlight.js:228报错“__ is not defined” #915

letao9370 opened this issue Aug 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@letao9370
Copy link

letao9370 commented Aug 19, 2024

①问题出处:code-highlight.js:228报错“__ is not defined”,文件来源“webpack://sakurairo-scripts/src/common/code-highlight.js”

②这个问题出在程序的哪一个具体功能?

实际行为描述:代码格式化显示模块,应该用于实现复制代码功能但是“复制”按钮消失

③触发问题后造成了什么效果及影响?

预期的行为:“复制”按钮出现,点击即可复制代码

④这个功能应该有怎样的效果和影响?

复现步骤:安装Sakurairo主题,使用code-highlight.js并插入任何代码即可

怎样才能再次触发这个问题?安装Sakurairo主题,使用code-highlight.js并插入任何代码即可

⑤配置与环境:

- 问题页面:(如果有,请提供一个触发此问题的页面链接)
- PHP 版本:PHP 8.0
- 数据库类型 / 版本:MySQL 5.7
- WordPress 版本: 6.6.1
- 主题版本:2.6.3.1
- 使用的插件:Limit Login Attempts Reloaded, Smush, WP Super Cache
- 浏览器:Chrome 127.0.6533.120

⑥截图(若有)

image

image

⑦补充信息:与“https://github.com/mirai-mamori/Sakurairo/issues/900”问题类似但错误位置不同

@letao9370 letao9370 added the bug Something isn't working label Aug 19, 2024
Copy link

@letao9370,感谢你给 sakurairo 提出了 issue。ヾ(≧▽≦*)o
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@letao9370
Copy link
Author

这是ChatGPT给出的错误提示,可供参考:
image

@kanodaisuki
Copy link
Contributor

你给的信息很详细,这是值得肯定的。但是在提出问题前,你应该先搜索以下有没有类似的问题已经被提出。

#874 #868 #811

这个问题已经被修复,只是还没有推送到正式版,等待更新即可。或者你可以尝试测试版:https://github.com/mirai-mamori/Sakurairo/tree/preview

@KotoriK KotoriK closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants