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.

Editor.js:75 Uncaught Error: Expected target ref

See original GitHub issue

Hello, I keep getting this error on initializing: Screen Shot 2020-10-20 at 9 37 38 AM

This is the row which is getting the error from the library: var target = _this.elementRef.current;

Here is my Editor component:

 <Editor
   apiKey="apiKey"
   inline
   init={{
      menubar: false,
      toolbar: false
   }}
   onEditorChange={setEditorState}
   value={editorState}
 /> 

initialValue is passed after data fetch in the same component with useEffect lifecycle hook. I am not sure if I am missing something that I should add as props. Did anybody else had the same issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jdufresnecommented, Oct 22, 2020

Confirmed, fixed in 3.8.1 🎉 Thanks for the quick fix!

1reaction
jdufresnecommented, Oct 21, 2020

I started experiencing the same error after upgrading from 3.7.0 to 3.8.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pytorch ValueError: Expected target size (2, 13), got torch.Size ...
The error message was kind of misleading since it said that the target was the wrong shape, when really the output was the...
Read more >
cannot read properties of undefined (reading 'publish')
The error states that node.pubsub is undefined while you are trying to access the publish property on the object. Quickly reading through an...
Read more >
478389 - Long data: URLs don't work on iframes for PDFs
The expected result would be to see the generated pdf with the picture. ... pdf.js:75 Uncaught (in promise) TypeError: Cannot read property ......
Read more >
Buster.JS Documentation - Read the Docs
JS exposes four global variables: buster, expect, assert, and refute. ... Uncaught errors are errors that the test runner is unable to ...
Read more >
Untitled
X30cr14, Stevens creek acura, Lispersteenweg 237, Olympic archery target distance, ... Izrada kisobrana, Lazarus 1991 reference, Billy stokes knoxville, ...
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