question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Uncaught TypeError: Cannot read property 'updateCurrentInput' of undefined

See original GitHub issue

When I click on a block of any EditorJS instance when there are two editors in the same page, I get the following error:

Uncaught TypeError: Cannot read property 'updateCurrentInput' of undefined

This is where the error is produced:

https://github.com/codex-team/editor.js/blob/43032ebaac6a8b9a67c9bf2ada5adc0f8592d546/src/components/modules/blockManager.ts#L566-L593

Steps to reproduce:

  1. Create two editors in the same page
  2. Click on a block

Expected behavior: No errors reported to the console.

Device, Browser, OS: Chromium 87

Editor.js version: 2.19.1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:16
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
hata6502commented, Jan 25, 2021

https://github.com/codex-team/editor.js/pull/1364/files#diff-73cbc05ddd84b0686ee89460cb98dfc39099c8472677e743192f301e26c2347cR584

This error occurs in BlockManager.setCurrentBlockByChildNode()

I sent a pull request.

6reactions
samarjaffalcommented, Jan 16, 2021

Hi, I have the same problem. Currently using the editor on a Modal developed on React. When you open the modal again the error appears on the console.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting constant error of - Uncaught TypeError: Cannot read ...
Your prop posts is undefined . Check what value you pass to the component and make sure this is an array.
Read more >
Cannot read properties of undefined' - JavaScript Debugging
How To Fix ' Uncaught TypeError : Cannot read properties of undefined ' ... In this video we talk about how to solve...
Read more >
How to Fix Uncaught TypeError: Cannot read properties of ...
Uncaught TypeError : Cannot read propertyIf you're a JavaScript developer, you've probably seen this error more than you care to admit.
Read more >
vue-editor-js - Bountysource
I'm trying to set up aligment tune for blocks, but i'm getting this kind of errors: Uncaught TypeError: Cannot read property 'isInternal' of...
Read more >
editor.min.js Uncaught TypeError: Cannot read property ...
In the console I can see following error: editor.min.js?ver=5.7:2 Uncaught TypeError: Cannot read property 'replace' of undefined at r ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found