-
Notifications
You must be signed in to change notification settings - Fork 48
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
NestJS: vite command not working #38
Comments
Hey there, you'll need to add theses lines in export default defineConfig({
// ...
optimizeDeps: {
// Vite does not work well with optionnal dependencies,
// mark them as ignored for now
exclude: [
'@nestjs/microservices',
'@nestjs/websockets',
'cache-manager',
'class-transformer',
'class-validator',
'fastify-swagger',
],
},
}) |
This solved my error, thanks! |
yea this is a limitation of vitejs atm, hopefully it get improved in upcoming vite 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running
vite
with NestJS fails with the following error (build
is working):The text was updated successfully, but these errors were encountered: