Skip to content

Not possible to set FormKit locale with autoImport: true #1112

@gbyesiltas

Description

@gbyesiltas

Reproduction

https://stackblitz.com/edit/github-wje2vn?file=app.vue

Describe the bug

While using autoImport on Nuxt, using the strategy from the docs to set the FormKit locale results in the following warning and the locale isn't set:

[Vue warn]: injection "Symbol(FormKitConfig)" not found.

It kind of makes sense that this happens, but I believe it's still a bug because at worst it's not possible to change the FormKit locale while this feature is on, and at best the docs are wrong.

Environment

• OS: macOS
• Browser: Safari
• Version: 17.1.2

Metadata

Metadata

Labels

🐛 bugVerified bug by team🚀 release-readyFeature or fix is complete and on an upcoming release branch🟡 priority-22. Medium priority issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions