fix:compile errors - #86
Open
kunal-10-cloud wants to merge 1 commit into
Open
Conversation
|
@kunal-10-cloud is attempting to deploy a commit to the krishnathecoder756's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
I resolved most of the compiling issues in Navbar.JS here #75. It hasn't been merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: #85
🔍 Root Causes Identified
require()in an ES module environment__dirnameandprocesswere not available in ES modulestailwindcss-animateplugin was not properly installed@tailwindcss/vitewas conflicting with traditional Tailwind setup🛠️ Changes Made
🔧 Configuration Fixes
require("tailwindcss-animate")to proper ES module import__dirnamewithfileURLToPath(import.meta.url)for ES module compatibilityprocess.env.NODE_ENVwith statictruefor development🧹 Code Quality Improvements
Home.jsxNavbar.jsx(moved imports to top level)imageSrcandsetImageSrcstate inRecipeCard.jsx📦 Dependency Management
tailwindcss-animatepackage@tailwindcss/vitethat was causing conflictstailwindcss-animateplugin🎨 UI Improvements
Navbar.jsxRecipeModal.jsx📁 Files Modified
tailwind.config.js- ES module conversion and plugin configurationvite.config.js- ES module compatibility fixessrc/pages/Home.jsx- Removed duplicate importssrc/components/Navbar.jsx- Fixed import placement and removed duplicate codesrc/components/RecipeCard.jsx- Added missing state variablessrc/components/ProfileSetup.jsx- Fixed unused variablesrc/components/RecipeModal.jsx- Fixed unused prop