frandiox / vite-ssr

Use Vite for server side rendering in Node
MIT License
823 stars 91 forks source link

use antdv error, why? #170

Closed lita-jerry closed 1 year ago

lita-jerry commented 2 years ago

Installation step: $ npm install ant-design-vue --save // vite.config.js import Components from 'unplugin-vue-components/vite'; import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';

export default { plugins: [ / ... / Components({ resolvers: [AntDesignVueResolver()], }), ], };

choose a .vue file use components:

Primary Button22222222

run: vite-ssr --port 3333 --open

see detail: https://github.com/frandiox/vitesse-ssr-template/issues/16

and the demo: https://github.com/frandiox/vitesse-ssr-template