Giter VIP home page Giter VIP logo

Comments (4)

adamberecz avatar adamberecz commented on May 20, 2024 1

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.

adamberecz avatar adamberecz commented on May 20, 2024

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.

pscheit avatar pscheit commented on May 20, 2024

@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.

pscheit avatar pscheit commented on May 20, 2024

oooh! i missed this in the setup guide, cause i clicked on vue. Thanks!

from vueform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.