Skip to content

fix(playground): missing AutocompleteField breaks Vuetify/MUI variants#39

Merged
ignsm merged 2 commits into
mainfrom
fix/playground-autocomplete-loader
May 11, 2026
Merged

fix(playground): missing AutocompleteField breaks Vuetify/MUI variants#39
ignsm merged 2 commits into
mainfrom
fix/playground-autocomplete-loader

Conversation

@ignsm
Copy link
Copy Markdown
Owner

@ignsm ignsm commented May 11, 2026

After #38 made the default playground fixture (basic-form.json) use the new autocomplete field type, the Vuetify and MUI playground variants crashed at runtime with:

Could not find module in path: './fields/AutocompleteField.vue' relative to '/src/component-map.ts'

Cause: examples/vue-vuetify/src/component-map.ts (and the MUI equivalent) register autocomplete: AutocompleteField, but the Sandpack loaders in docs/.vitepress/components/playground/loaders/ weren't updated to ship the new field file. Sandpack-resolved imports point at a file the playground never sent.

Fixes

  • docs/.vitepress/components/playground/loaders/vue-vuetify.ts and react-mui.ts now ?raw-import AutocompleteField and include it in the file map.
  • examples/vanilla-svelte/src/App.svelte extended to handle autocomplete (<input list> + <datalist>) and datetime (type="datetime-local"). Without this, the Svelte variant fell back to plain <input type="text"> for both new types — still functional, but the playground wouldn't actually showcase them.

pnpm docs:build and pnpm --filter @formhaus-examples/vanilla-svelte build both clean.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
formhaus Ready Ready Preview, Comment May 11, 2026 1:13am

Request Review

@ignsm ignsm merged commit 54ddde7 into main May 11, 2026
8 checks passed
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.

1 participant