Replit integration

GitHub Import Missing Files on Replit

You imported a GitHub repository into Replit, but the project is incomplete. Some files and directories are missing, the app will not start, and you see errors about modules, configurations, or assets that should exist but do not.

Replit's GitHub import process does not always capture every file from a repository. Files excluded by .gitignore, files over certain size limits, symlinks, and files in submodules are commonly missed during import. The import also does not run post-clone hooks or setup scripts.

This is particularly confusing because the repository looks complete on GitHub but the Replit project is missing critical pieces needed to run the application.

Error Messages You Might See

MODULE_NOT_FOUND: Cannot find module './config' FileNotFoundError: .env: No such file or directory Error: Cannot find package.json ERROR: Could not find a required file: index.html
MODULE_NOT_FOUND: Cannot find module './config'FileNotFoundError: .env: No such file or directoryError: Cannot find package.jsonERROR: Could not find a required file: index.html

Common Causes

  • .gitignore exclusions — files like .env, node_modules, build artifacts, and config files are excluded by .gitignore and not imported
  • Large files excluded — files over Replit's size limit are silently skipped during import
  • Git submodules not cloned — submodule directories appear empty because submodules require separate initialization
  • Symlinks not resolved — symbolic links in the repository are not followed during import
  • LFS files not downloaded — files tracked by Git LFS are not pulled during the import

How to Fix It

  1. Check .gitignore — review the .gitignore file to understand which files were excluded, then create them manually in Replit
  2. Create missing .env file — add environment variables to Replit Secrets and create a .env file if your app reads from one
  3. Run npm install or pip install — dependency directories like node_modules are in .gitignore and must be reinstalled
  4. Initialize submodules manually — use the Shell to run git submodule init && git submodule update
  5. Download LFS files — install git-lfs and run git lfs pull in the Replit shell
  6. Compare with GitHub — view the repository on GitHub and manually verify which files are missing in your Replit project

Real developers can help you.

Milan Surelia Milan Surelia Milan Surelia is a Mobile App Developer with 5+ years of experience crafting scalable, cross-platform apps at 7Span and Meticha. At 7Span, he engineers feature-rich Flutter apps with smooth performance and modern UI. As the Co-Founder of Meticha, he builds open-source tools and developer-focused products that solve real-world problems. Expertise: 💡 Developing cross-platform apps using Flutter, Dart, and Jetpack Compose for Android, iOS, and Web. 🖋️ Sharing insights through technical writing, blogging, and open-source contributions. 🤝 Collaborating closely with designers, PMs, and developers to build seamless mobile experiences. Notable Achievements: 🎯 Revamped the Vepaar app into Vepaar Store & CRM with a 2x performance boost and smoother UX. 🚀 Launched Compose101 — a Jetpack Compose starter kit to speed up Android development. 🌟 Open source contributions on Github & StackOverflow for Flutter & Dart 🎖️ Worked on improving app performance and user experience with smart solutions. Milan is always happy to connect, work on new ideas, and explore the latest in technology. Victor Denisov Victor Denisov Developer Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. BurnHavoc BurnHavoc Been around fixing other peoples code for 20 years. Mehdi Ben Haddou Mehdi Ben Haddou - Founder of Chessigma (1M+ users) & many small projects - ex Founding Engineer @Uplane (YC F25) - ex Software Engineer @Amazon and @Booking.com Anthony Akpan Anthony Akpan Developer with 8 years of experience building softwares fro startups Alvin Voo Alvin Voo I’ve watched the tech landscape evolve over the last decade—from the structured days of Java Server Pages to the current "wild west" of Agentic-driven development. While AI can "vibe" a frontend into existence, I specialize in the architecture that keeps it from collapsing. My expertise lies in the critical backend infrastructure: the parts that must be fast, secure, and scalable. I thrive on high-pressure environments, such as when I had only three weeks to architect and launch an Ethereum redemption system with minimal prior crypto knowledge, turning it into a major revenue stream. What I bring to your project: Forensic Debugging: I don't just "patch" bugs; I use tools like Datadog and Explain Analyzers to map out bottlenecks and resolve root causes—like significantly reducing memory usage by optimizing complex DB joins. Full-Stack Context: Deep experience in Node.js and React, ensuring backends play perfectly with mobile and web teams. Sanity in the Age of AI: I bridge the gap between "best practices" and modern speed, ensuring your project isn't just built fast, but built to last. Taufan Taufan I’m a product-focused engineer and tech leader who builds scalable systems and turns ideas into production-ready platforms. Over the past years, I’ve worked across startups and fast-moving teams, leading backend architecture, improving system reliability, and shipping products used by thousands of users. My strength is not just writing code — but connecting product vision, technical execution, and business impact. Omar Faruk Omar Faruk As a Product Engineer at Klasio, I contributed to end-to-end product development, focusing on scalability, performance, and user experience. My work spanned building and refining core features, developing dynamic website templates, integrating secure and reliable payment gateways, and optimizing the overall system architecture. I played a key role in creating a scalable and maintainable platform to support educators and learners globally. I'm enthusiastic about embracing new challenges and making meaningful contributions. Bastien Labelle Bastien Labelle Full stack dev w/ 20+ years of experience

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

Why are some files missing after importing from GitHub?

Files listed in .gitignore (like .env, node_modules, build folders) are not tracked by Git and therefore not imported. You need to create these files manually or run install commands in Replit.

My app needs a .env file but it was not imported. What do I do?

Create the required environment variables in Replit's Secrets panel. If your app reads from a .env file directly, create one manually with the required variables.

Can I pull updates from GitHub after the initial import?

Yes, use the Git panel in Replit or run git pull in the Shell to sync with the latest changes from GitHub.

Related Replit Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help