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

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

Open
laxmangaian opened this issue Jan 10, 2024 · 2 comments
Open

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

laxmangaian opened this issue Jan 10, 2024 · 2 comments

Comments

@laxmangaian
Copy link

laxmangaian commented Jan 10, 2024

@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

@laxmangaian laxmangaian changed the title Vite.config.ts issue React in Vue - Vite.config.ts issue Jan 11, 2024
@hahatulk
Copy link

i have the same problem :(

@devilwjp
Copy link
Collaborator

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

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

3 participants