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

Nuxt autoImport: true makes it necessary to import FormKitSchema #1286

Open
silvio-e opened this issue Mar 29, 2024 · 1 comment
Open

Nuxt autoImport: true makes it necessary to import FormKitSchema #1286

silvio-e opened this issue Mar 29, 2024 · 1 comment
Labels
🐛 bug Verified bug by team 🔵 priority-3 3. Lower priority issue

Comments

@silvio-e
Copy link

Reproduction

https://stackblitz.com/edit/nuxt-starter-khnmgv?file=nuxt.config.ts

Describe the bug

The FormKitSchema component is globally available in Nuxt and ready to use like the FormKit component when autoImport: false.

When setting autoImport: true this doesn't work anymore and the component needs to be imported manually.

What I would expect:

I would expect that FormKitSchema is still available like FormKit is too.

Environment


  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.11.1
  • CLI Version: 3.11.1
  • Nitro Version: 2.9.5
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, modules, formkit
  • Runtime Modules: @nuxtjs/tailwindcss@6.11.4, @formkit/nuxt@1.6.1
  • Build Modules: -

@silvio-e silvio-e added ⛑ Needs triage The issue has not yet been examined by the FormKit team. 🐛 bug-report Bug is reported, but not verified by team labels Mar 29, 2024
@justin-schroeder justin-schroeder added 🐛 bug Verified bug by team 🔵 priority-3 3. Lower priority issue and removed 🐛 bug-report Bug is reported, but not verified by team ⛑ Needs triage The issue has not yet been examined by the FormKit team. labels Mar 29, 2024
@justin-schroeder
Copy link
Member

You are 100% correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Verified bug by team 🔵 priority-3 3. Lower priority issue
Projects
None yet
Development

No branches or pull requests

2 participants