-
Notifications
You must be signed in to change notification settings - Fork 127
[ question ] compatibility in projects built by vite #413
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
Comments
Vite uses esbuild (alternative TypeScript compiler), right? If so, then Deepkit is not supported. Deepkit requires the official TypeScript compiler (tsc), so if you can get Vite to work with tsc, then Deepkit will work fine. |
Thank you for your reply . |
Vite is now supported via import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'
import { deepkitType } from "@deepkit/vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), deepkitType()],
}) see example repository here: https://github.com./marcj/typescript-react-dependency-injection |
Hi

I follow the docs and try to use @deepkit/type in my vue3 project built by vite , it doesn't work even replicating the scenario in the docs .
Error screenshot :
But in project built with vue-cli , it works correctly.
So I want to ask , it cannot work with vite or the docs has something not mentioned ?
hope to get your reply
The text was updated successfully, but these errors were encountered: