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.

Cannot set property 'id' of undefined

See original GitHub issue

Hi,

I have updated the editor from version 0.15.4 to 0.18.4. When I start now my application I get this stack:

TypeError: Cannot set property 'id' of undefined at AngularEditorComponent.configure (kolkov-angular-editor.js:1069) at AngularEditorComponent.ngAfterViewInit (kolkov-angular-editor.js:800) at callProviderLifecycles (core.js:26694) at callElementProvidersLifecycles (core.js:26659) at callLifecycleHooksChildrenFirst (core.js:26641) at checkAndUpdateView (core.js:37060) at callViewAction (core.js:37416) at execEmbeddedViewsAction (core.js:37373) at checkAndUpdateView (core.js:37051) at callViewAction (core.js:37416) at execEmbeddedViewsAction (core.js:37373) at checkAndUpdateView (core.js:37051) at callViewAction (core.js:37416) at execComponentViewsAction (core.js:37344) at checkAndUpdateView (core.js:37057)

I have two editors on my side. They are configured like:

<angular-editor id="editor2" class="w-100 border0" [config]="editorConfig" [(ngModel)]="message.content"></angular-editor>

<angular-editor id="editor1" class="w-100 border0" [config]="editorConfig" [(ngModel)]="message.contentReply"></angular-editor>

Pls help.

best wishes, Lars

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
weyandchcommented, Aug 22, 2019

Hi @kolkov I ran into the same problem when updating the angular-editor in my project.

I’ve been missing the new attribute toolbarPosition: 'top' from my editorConfig, i think it would be convenient to asume “top” as default?

0reactions
kolkovcommented, Aug 26, 2019

@zijianhuang this fixed in 1.0.0-beta.1 thanks! Try new build if you ar on Angular 8.x.x already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "ERROR TypeError: Cannot set property 'id' of ...
I get an error "ERROR TypeError: Cannot set property 'id' of undefined" when i try to call getHistoryData() from html.
Read more >
Cannot read properties of undefined (reading 'id') - TrackJS
In this case, our code expects to have an object with a id property, but that object was not present.
Read more >
Uncaught TypeError: Cannot set property
In JavaScript if a variable has been declared, but has not been assigned a value, is automatically assigned the value undefined . Therefore,...
Read more >
ConnectWise Manage Error: "Cannot set property 'board/id' of ...
when I try and test I receive this error. I do not understand this error and I need help resolve this so my...
Read more >
How to fix "ERROR TypeError - HTML - YouTube
HTML : How to fix "ERROR TypeError: Cannot set property ' id' of undefined " [ Beautify Your Computer ...
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