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

[Bug Report][3.0.0-next-20220107.0] Got "Uncaught TypeError: dir is undefined" when using TextField or Textarea #14578

Closed
BreizhReloaded opened this issue Jan 7, 2022 · 2 comments
Assignees
Labels
C: VTextField VTextField has workaround T: bug Functionality that does not work as intended/expected upstream Problem with a third party library that we may have to work around
Milestone

Comments

@BreizhReloaded
Copy link

Environment

Vuetify Version: 3.0.0-next-20220107.0
Last working version: 3.0.0-alpha.12
Vue Version: 3.2.26
Browsers: Firefox 95.0
OS: Windows 10

Steps to reproduce

  1. Start Vue project using Vuetify Nightly 20220107
  2. Use TextField component
  3. Get "Uncaught TypeError: dir is undefined" in console

Expected Behavior

Text Field is displayed

Actual Behavior

Component is not displayed

Reproduction Link

https://github.com/BreizhReloaded/my-vue-app

Other comments

I checked the previous versions, the last working version may be 20211217. It seems to be related to the Field component or its dependencies as Text Field and Textarea both import it.

@KaelWD KaelWD added C: VTextField VTextField has workaround Prerelease T: bug Functionality that does not work as intended/expected upstream Problem with a third party library that we may have to work around and removed S: triage labels Jan 31, 2022
@KaelWD
Copy link
Member

KaelWD commented Jan 31, 2022

This is a compiler bug: vuejs/babel-plugin-jsx#541

Workaround is to import the intersect directive globally:

import { Intersect } from 'vuetify/directives'

createVuetify({
  directives: { Intersect },
})

@BreizhReloaded
Copy link
Author

BreizhReloaded commented Feb 1, 2022

I noticed indeed last week that importing directives solves the issue, it works perfectly when adding only Intersect. Thanks for the cleaner workaround Kael, hope they'll fix that soon!

@KaelWD KaelWD self-assigned this Feb 16, 2022
KaelWD added a commit that referenced this issue Feb 16, 2022
@KaelWD KaelWD added this to the v3.0.0-beta milestone Mar 13, 2022
@KaelWD KaelWD removed the Prerelease label Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VTextField VTextField has workaround T: bug Functionality that does not work as intended/expected upstream Problem with a third party library that we may have to work around
Projects
None yet
Development

No branches or pull requests

2 participants