konstaui / konsta

Mobile UI components made with Tailwind CSS
https://konstaui.com
MIT License
3.3k stars 119 forks source link

TypeError: Cannot read properties of undefined (reading 'value') #196

Closed Kevinsillo closed 1 month ago

Kevinsillo commented 2 months ago

Check that this is really a bug

Reproduction link

https://stackblitz.com/edit/konsta-vue-pdrwdq?file=main.js

Bug description

When I use k-list-input, you can see an error type in console.

[Vue warn]: inject() can only be used inside setup() or functional components.
[Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
    at use-theme-classes.js?v=82131380:48:25
    at ReactiveEffect.fn (chunk-ESTIRR4N.js?v=82131380:1235:13)
    at ReactiveEffect.run (chunk-ESTIRR4N.js?v=82131380:429:19)
    at get value (chunk-ESTIRR4N.js?v=82131380:1246:64)
    at triggerComputed (chunk-ESTIRR4N.js?v=82131380:448:20)
    at get dirty (chunk-ESTIRR4N.js?v=82131380:401:11)
    at instance.update (chunk-ESTIRR4N.js?v=82131380:7570:19)
    at callWithErrorHandling (chunk-ESTIRR4N.js?v=82131380:1650:32)
    at flushJobs (chunk-ESTIRR4N.js?v=82131380:1857:9)

Expected Behavior

No response

Actual Behavior

No response

Konsta UI version

3.1.2

Platform/Target and Browser Versions

Windows, Chrome

Validations

Would you like to open a PR for this bug?

Awolwe commented 2 months ago

Same problem

Awolwe commented 2 months ago

if i fix with redacting just adding ?. let theme = context?.value?.theme || 'ios'; here will be also problem if (!context.value.dark) return '';

nolimits4web commented 1 month ago

t0ggles-create konsta

t0ggles[bot] commented 1 month ago

Task nolimits4web/KONSTA-76 was created

t0ggles task KONSTA-76

t0ggles[bot] commented 1 month ago

Task nolimits4web/KONSTA-76 status changed to Done