Skip to content

fix: nuxt.config.ts autoForm options not being respected#31

Closed
lajczi wants to merge 1 commit into
Norbiros:masterfrom
lajczi:fix/config
Closed

fix: nuxt.config.ts autoForm options not being respected#31
lajczi wants to merge 1 commit into
Norbiros:masterfrom
lajczi:fix/config

Conversation

@lajczi

@lajczi lajczi commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

Module options from nuxt.config.ts were stored in runtimeConfig.public.autoForm, but all components (AutoForm.vue, AutoFormModal.vue) read from useAppConfig().autoForm; however, these are completely separate. Options were never bridged into the app config

Fixed by assigning module options to nuxt.options.appConfig.autoForm, so useAppConfig() picks them up.app.config.ts still takes precedence via Nuxt's native app config merging

Also typed ModuleOptions as AutoFormConfig for proper autocomplete in nuxt.config.ts

Signed-off-by: lajczi <lajczi@disroot.org>
Comment thread src/module.ts
@lajczi lajczi closed this Mar 21, 2026

@Norbiros Norbiros left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configuration related to the UI should be stored in the app.config.ts. In documentation it clearly states to configure those options in the app.config.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants