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.

Jacek Rozanski Jacek Rozanski Senior PHP/Symfony developer and DevOps engineer with 20+ years of professional experience, running opcode.pl (web development agency, est. 2004). Day job: I'm the sole backend developer at merketing company where I own and maintain 11 PHP/Symfony microservices on AWS (ECS Fargate, RDS, S3, CloudFront), handle the full CI/CD pipeline (Bitbucket Pipelines, Docker), and manage monitoring with Sentry and CloudWatch. These services handle high request volumes in production every month. What I bring to AI-built apps: - I audit and fix security issues (OWASP methodology), performance bottlenecks, and architectural problems in codebases generated by Cursor, Claude Code, Lovable, Bolt, and v0 - I refactor AI-generated prototypes into production-grade applications with proper error handling, testing, and clean architecture (SOLID, DDD, hexagonal architecture) - I set up the infrastructure AI tools don't touch: AWS hosting, CI/CD pipelines, automated deployments, database optimization, monitoring, and alerting - I integrate external services: payment providers, email systems, partner APIs, SSO/auth Tech stack: PHP 8.x, Symfony, React, Next.js, PostgreSQL, MySQL, Docker, AWS (ECS, RDS, S3, SQS/SNS, CloudFront), Terraform, Supabase. I also use AI tools daily (Claude Code, Cursor) in my own workflow, so I understand both the strengths and the gaps in AI-generated code. Based in Poland (CET timezone). Available for async work and calls during EU/US business hours. hanson1014 hanson1014 Full-stack developer experienced in fixing and deploying AI-generated apps from Lovable, Bolt.new, Cursor, and Replit. I specialize in debugging Supabase integration issues (auth flows, RLS policies, database connections), fixing broken deployments, resolving routing/blank screen problems, and cleaning up messy React/Vite codebases. I also build production apps with the Claude API and have shipped a Mac desktop dev tool (Nexterm from scratch. Based in Hong Kong, fast turnaround. Matthew Butler Matthew Butler Systems Development Engineer @ Amazon Web Services 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. legrab legrab I'll fill this later rayush33 rayush33 JavaScript (React.js, React Native, Node.js) Developer with demonstrated industry experience of 4+ years, actively looking for opportunities to hone my skills as well as help small-scale business owners with solutions to technical problems Victor Denisov Victor Denisov Developer AUXLE AUXLE I am a Full Stack Developer experienced in building Websites, Web apps and Cross Platform Mobile Apps for Startups and Companies. Tejas Chokhawala Tejas Chokhawala Full-stack engineer with 5 years experience building production web apps using React, Next.js and TypeScript. Focused on performance, clean architecture and shipping fast. Experienced with Supabase/Postgres backends, Stripe billing, and building AI-assisted developer tools. Meïr Ankri Meïr Ankri Full-stack developer specializing in React / Next.js / Node.js with 6+ years of experience. I've worked across various sectors including automotive (Reezocar/Société Générale), healthcare (Medical Link SaaS), and e-commerce (Glasman). I build web apps end-to-end, from architecture to production, with a focus on scalability, performance, and code quality. I also mentor junior developers and contribute to technical decisions and code reviews.

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