gloriasoft / veaury

Use React in Vue3 and Vue3 in React, And as perfect as possible!
MIT License
1.27k stars 81 forks source link

React in Vue - Vite.config.ts issue #106

Open laxmangaian opened 8 months ago

laxmangaian commented 8 months ago

@devilwjp, @zhangHongEn I want to use React component in my project which built on Vue, Quasar and few typescript files (for interfaces, constants and config). I am trying to change the vite.config.ts. But I got the below error. Please help me to resolve the issue.

Code changes (vite.config.ts):

import { defineConfig } from "vite" import { quasar, transformAssetUrls } from "@quasar/vite-plugin" import veauryVitePlugins from "veaury/vite/index.js"

export default defineConfig({ plugins: [ veauryVitePlugins({ type: "vue", vueOptions: { template: { transformAssetUrls } }, }),

quasar({ sassVariables: "src/quasar-variables.sass" }), ] })

Error Message: Screenshot from 2024-01-11 12-15-05

Screenshot from 2024-01-10 18-06-00

Screenshot from 2024-01-10 18-19-47

hahatulk commented 4 months ago

i have the same problem :(

devilwjp commented 4 months ago

@hahatulk @laxmangaian vite.config.js does not seem to configure the vite-tsconfig-paths plugin