ruabick icon indicating copy to clipboard operation
ruabick copied to clipboard

dmo组件使用tsx报错!( React is not defined)

Open chenchen0501 opened this issue 3 years ago • 1 comments

源码: image 使用: image 报错: image vite配置: 在plugins已配置@vitejs/plugin-vue-jsx

chenchen0501 avatar Nov 15 '22 02:11 chenchen0501

我试了可以,是不是配置有误?

// docs\.vitepress\config.js

import vueJsx from '@vitejs/plugin-vue-jsx'

export default defineConfig({
  ...
  vite: {
    plugins: [genTemp(), genApiDoc(), vueJsx()],
  }

dewfall123 avatar Nov 15 '22 13:11 dewfall123