Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
used zod insteal of using various conditions
What specific areas of your project would you like help with?while deploying it on vercel faced error
If you do want to externalize this module explicitly add it to
build.rollupOptions.external
even added the external dependency the website varies on rendering because of this try to run it locally. and it would be please if someone would guide me to resolve it
Community feedback
- @markuslewinPosted 8 months ago
You want
zod
to be part of your JS bundle, so you shouldn't have to change yourvite.config.js
at all. 🤔Try removing the
external
property:import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], });
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord