Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with starting #118

Open
hironaokato opened this issue Oct 26, 2021 · 1 comment
Open

problem with starting #118

hironaokato opened this issue Oct 26, 2021 · 1 comment

Comments

@hironaokato
Copy link

hironaokato commented Oct 26, 2021

Hello there, I'm using Vite , Vue3 and Element UI written under Composition API style.

I followed the installation and my code is just copy and pasted from the Usage Page, but browser didn't start.

Do you have any idea what I can do with? Or if there is anything I should do with, please let me know ;)

EDIT: sry I used the V2.8.x but I switched to the V3.0.0 alpha, and it did go well. Should I switch to vue3rewrite branch?

@hironaokato hironaokato changed the title problem with "_vue.extend is not a function" problem with starting Oct 26, 2021
@michaelmok2021
Copy link

@hironaokato any chance you can share your vite.config.js. We are not able to get the vue-form-json-schema to work after compilig with vite. Note we are using vue 2.6.14 and bootstap.

Our vite.config.js looks like this.

import path from "path";
import { defineConfig } from "vite";
import { createVuePlugin } from "vite-plugin-vue2";
import WindiCSS from "vite-plugin-windicss";
import Components from "unplugin-vue-components/vite";
import Icons from "unplugin-icons/vite";
import IconsResolver from "unplugin-icons/resolver";

// https://vitejs.dev/config/
export default defineConfig(({ command, mode }) =>
  ({
      resolve: {
          alias: {
              "@": `${path.resolve(__dirname, "src")}`,
          },
          dedupe: ["vue-demi"],
      },
      plugins: [
          createVuePlugin(),
          WindiCSS(),
          Components({
              resolvers: [
                  IconsResolver({
                      componentPrefix: "",
                  }),
              ],
          }),
          Icons(),
      ],
      optimizeDeps: {
          exclude: ['vue-demi']
      },
      build: {
        brotliSize: false,
        manifest: false,
        minify: mode === 'development' ? false : 'terser',
        outDir: 'dist',
        sourcemap: command === 'serve' ? 'inline' : false,
      }
  })
)

Thanks

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

No branches or pull requests

2 participants