Comments (4)
Thanks @pscheit , but these should not be required anymore - instead we have a Vite plugin that contains everything that needs to be added to vite.config.js
.
from vueform.
Have you tried using our installation wizard? https://vueform.com/docs/1.x/installation
Vite requires an extra step of adding some libs to optimizeDeps. The basic vite.config.js
should look like this:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue({
template: {
compilerOptions: {
isCustomElement: (tag) => ['trix-editor'].indexOf(tag) !== -1
}
},
}),
],
optimizeDeps: {
include: [
'nouislider',
'wnumb',
'trix'
]
}
})
from vueform.
@adamberecz imho this is missing in the guide:
https://vueform.com/docs/installation
if I select vue or vite it isn't shown, that I have to add this to my vite.js?
I can make a PR or are those files not in a public repo?
from vueform.
oooh! i missed this in the setup guide, cause i clicked on vue. Thanks!
from vueform.
Related Issues (20)
- Unreadable text inputs on Nuxt with TailwindCSS theme HOT 1
- Uncaught SyntaxError: ambiguous indirect export: default HOT 3
- Astro Vueform integration issue HOT 11
- vueform does not render when used with nextauthjs/next-auth HOT 2
- Error when placing password fields in a group HOT 2
- Validator 'in' must be named 'in_' otherwise it is not found
- Default for select element not applied with schema HOT 1
- DateElement in GroupElement does not set form data
- Conditional rendering on DateElement with extendOptions: { weekNumbers: true } causes the Flatpickr render with width 1px
- Required rule doesn't consider default value 0 with numeric/integer rule HOT 1
- Click event does not fire for `ButtonElement` when subscribed via `on()` HOT 1
- Value from the numeric input is not number in submitting data HOT 4
- Astro error "window is not defined" in @vueform/vueform/dist/tailwind.mjs HOT 1
- Invalid prop type for content StaticElement HOT 2
- DateTime does not fire change event when nested in container HOT 1
- File Element convertFormData not working for Vite >= 3.0.0 HOT 1
- Form response event in case of not 200 code returns empty object instead of axios response HOT 1
- Bug when I set the prop 'disabled' between several toggles in a ListElement. HOT 1
- VueForm fails to render multilingual forms with localized default values HOT 1
- VueForm not Working with Nuxt Layers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vueform.