editor.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'normalize')
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 28/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript, typescript
- 领域
- frontend
调研方向
在 Formbuilder 中添加一个自定义块并点击向上和向下箭头键,以重现该问题。从 dist/editor.js:2 处的 @editorjs/editorjs 堆栈跟踪开始,并检查列出的 Editor.js 插件和版本;当重现过程不再在控制台中输出 normalize TypeError 时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe a bug.
Formbuilder - Create a Form: console errors seen
Add Custom Block and click on up and down arrow keys, user will see console errors as below :
`
editor.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'normalize')
at Function.value (editor.js:2:1)
at o.get (editor.js:2:1)
at o.value (editor.js:2:1)
at o.value (editor.js:2:1)
at k.value (editor.js:2:1)
at k.value (editor.js:2:1)
at HTMLDocument.eval (editor.js:2:1)
| value | @ | editor.js:2 | |
|---|---|---|---|
| get | @ | editor.js:2 | |
| value | @ | editor.js:2 | |
| value | @ | editor.js:2 | |
| value | @ | editor.js:2 | |
| value | @ | editor.js:2 | |
| eval | @ | editor.js:2 |
Steps to reproduce:
- Add custom block
- click on up and down arrow keys
Expected behavior:
Console errors should not be thrown
Device, Browser, OS:
All Device, Browser, OS
Editor.js version:
"@editorjs/checklist": "^1.3.0",
"@editorjs/delimiter": "^1.2.0",
"@editorjs/editorjs": "^2.23.2",
"@editorjs/header": "^2.6.2",
"@editorjs/image": "^2.6.2",
"@editorjs/inline-code": "^1.3.1",
"@editorjs/list": "^1.7.0",
"@editorjs/paragraph": "^2.8.0",
"@editorjs/quote": "^2.4.0",
"@editorjs/raw": "^2.3.1",
"@editorjs/table": "^2.0.1",
"@editorjs/text-variant-tune": "^1.0.1",
"@editorjs/underline": "^1.0.0",
"@editorjs/warning": "^1.2.0",
"editorjs-change-case": "^0.0.3",
"editorjs-drag-drop": "^1.1.2",
"editorjs-inline-font-size-tool": "^1.0.1",
"editorjs-text-alignment-blocktune": "^1.0.3",
"editorjs-text-color-plugin": "^1.13.1",
"editorjs-undo": "1.0.1",
Plugins you use with their versions:
"@editorjs/checklist": "^1.3.0",
"@editorjs/delimiter": "^1.2.0",
"@editorjs/editorjs": "^2.23.2",
"@editorjs/header": "^2.6.2",
"@editorjs/image": "^2.6.2",
"@editorjs/inline-code": "^1.3.1",
"@editorjs/list": "^1.7.0",
"@editorjs/paragraph": "^2.8.0",
"@editorjs/quote": "^2.4.0",
"@editorjs/raw": "^2.3.1",
"@editorjs/table": "^2.0.1",
"@editorjs/text-variant-tune": "^1.0.1",
"@editorjs/underline": "^1.0.0",
"@editorjs/warning": "^1.2.0",
"editorjs-change-case": "^0.0.3",
"editorjs-drag-drop": "^1.1.2",
"editorjs-inline-font-size-tool": "^1.0.1",
"editorjs-text-alignment-blocktune": "^1.0.3",
"editorjs-text-color-plugin": "^1.13.1",
"editorjs-undo": "1.0.1",
- 主要语言
- TypeScript
- 星标
- 32k
- 派生
- 2.2k
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
codex-team/editor.js 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
codex-team/editor.js#3037 ·
-
Floating Promise Anti-Pattern & Premature Caret in Multi-Block Paste可能已有人在做 @anshurajbisoyi98-ctrl 于 14 天前认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 78/100
codex-team/editor.js#3032 · 1 条评论 ·
-
Silent Data Loss & Broken Error Contract in Saver.save()可能已有人在做 @Sion612 于 24 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
codex-team/editor.js#3030 ·
-
Complete Omission of block.destroy() in Blocks Collection可能已有人在做 @Minhal128 于 23 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
codex-team/editor.js#3029 ·
-
Bug: Link cannot be removed可能已有人在做 @prathmeshyelne 于 129 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 65/100
codex-team/editor.js#3005 · 1 条评论 ·
查看 codex-team/editor.js 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 73/100
anomalyco/opencode#56380 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
BUG | `MCP 服务器` | 全局层行的停用/启用与删除报 404 server row not found,编辑保存会在 profile 层复制出重复行可能已有人在做 @w6242652 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 72/100
Chocobozzz/PeerTube#7832 ·
维护者通常 3 天内回复
-
Pay to use?未关闭
难度 1/5 1 小时以内 新手友好度 66/100
darkreader/darkreader#16108 · 1 条评论 ·
维护者通常 2 天内回复