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.

[Vue3-flicking] TypeError: Cannot set properties of undefined (setting 'hasError')

See original GitHub issue

Description

Hello team!

We noticed from our error monitor that when the first image of our carousel can not be loaded we get the following error.

TypeError: Cannot set properties of undefined (setting 'hasError')
  at onError(src/ImReadyManager.ts:241:10)
  at ? (src/ImReadyManager.ts:69:14)
  at ? (src/Component.ts:98:16)
  at Array.forEach(<anonymous>)
  at trigger(src/Component.ts:96:16)
  at onError(src/loaders/Loader.ts:95:10)
  at handler(src/ImReadyManager.ts:188:14)
  at ? (src/Component.ts:93:9)
  at Array.forEach(<anonymous>)
  at trigger(src/Component.ts:92:16)
  at onError(src/ImReadyManager.ts:268:10)
  at ? (src/ImReadyManager.ts:69:14)
  at ? (src/Component.ts:98:16)
  at Array.forEach(<anonymous>)
  at trigger(src/Component.ts:96:16)
  at onError(src/loaders/Loader.ts:95:10)
  at ? (src/loaders/Loader.ts:131:12)
  at i(src/helpers.ts:95:1)

Version: “@egjs/vue3-flicking”: “4.10.2”

Steps to check or reproduce

  1. Create a flicking carousel with images
  2. Set the first image of the carousel to return 404

And you should notice that the error is triggered.

Could you please catch this error or is there a way we can catch it because it creates a lot of noise in our monitor tool?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
malangfoxcommented, Nov 15, 2022

We will fix this bug and leave a comment when a patch is released. Thanks for reporting the bug with details!

1reaction
nickdrimcommented, Nov 11, 2022

Hello again @malangfox,

I managed to replicate it and updated your demo closer to ours. Turns out that adding a div wrapper with v-for and img with lazy loading seems to create the problem

Edit: updated the link. I sent wrong demo on initial comment

Read more comments on GitHub >

github_iconTop Results From Across the Web

core.js:6456 ERROR TypeError: Cannot set properties of ...
You are getting the error above as you are accessing this.employee which is undefined . You need to assign the value to this.employee...
Read more >
SSR Error TypeError: Cannot set properties of undefined ...
SSR Error TypeError: Cannot set properties of undefined (setting 'key') when conditional single slot generated by <template v-if="..." #foo> #6639.
Read more >
TypeError: Cannot set properties of undefined (setting 'isVue ...
Bug reported in Vue - General Query / New Component - TypeError: Cannot set properties of undefined (setting 'isVue').
Read more >
Bug - Cannot set properties of undefined (setting '1') when ...
Hi, We've found that if using Unity 2022 beta with BestHttp2 added to the project that any UnityWebRequest made will result in a...
Read more >
Cannot set property '_DT_CellIndex' of undefined Gentelella ...
Uncaught TypeError: Cannot set property '_DT_CellIndex' of undefined at Ga (jquery.dataTables.min.js:527) at M (jquery.dataTables.min.js:279) at ...
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