Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
5 of 6 tasks
Kevinsillo opened this issue Feb 19, 2024 · 5 comments
Closed
5 of 6 tasks

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

Kevinsillo opened this issue Feb 19, 2024 · 5 comments
Labels
Vue Issue with Tailwind Mobile Vue

Comments

@Kevinsillo
Copy link

Kevinsillo commented Feb 19, 2024

Check that this is really a bug

  • I confirm

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

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@Kevinsillo Kevinsillo added the Vue Issue with Tailwind Mobile Vue label Feb 19, 2024
@Awolwe
Copy link

Awolwe commented Mar 13, 2024

Same problem

@Awolwe
Copy link

Awolwe commented Mar 13, 2024

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

@nolimits4web
Copy link
Member

t0ggles-create konsta

Copy link

t0ggles bot commented Mar 18, 2024

Task nolimits4web/KONSTA-76 was created

t0ggles task KONSTA-76

Copy link

t0ggles bot commented Mar 25, 2024

Task nolimits4web/KONSTA-76 status changed to Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Vue Issue with Tailwind Mobile Vue
Projects
None yet
Development

No branches or pull requests

3 participants