Cursor api

Import Paths Broken After File Reorganization

After Cursor moved or reorganized your source files, many import statements are broken. The build fails because modules can't be found or import paths are incorrect.

Relative paths didn't get updated when files moved.

Error Messages You Might See

Cannot find module '../utils' MODULE_NOT_FOUND Cannot find name 'UserService' ERROR in compilation
Cannot find module '../utils'MODULE_NOT_FOUNDCannot find name 'UserService'ERROR in compilation

Common Causes

  1. Relative import paths not updated after file move (../controller/user.js no longer valid)
  2. Absolute path imports assuming old directory structure
  3. Circular dependencies created by file reorganization
  4. Index.js file with re-exports removed during cleanup
  5. tsconfig paths configuration doesn't match new structure

How to Fix It

Use absolute imports with path aliases if possible: import {User} from '@/models/User' with tsconfig "paths": {"@/*": ["src/*"]}. Or carefully count directory depth for relative: import {a} from '../../../utils'. Use IDE's auto-refactor on move.

Real developers can help you.

Basel Issmail Basel Issmail ’m a Senior Full-Stack Developer and Tech Lead with experience designing and building scalable web platforms. I work across the full development lifecycle, from translating business requirements into technical architecture to delivering reliable production systems. My work focuses on modern web technologies, including TypeScript, Angular, Node.js, and cloud-based architectures. I enjoy solving complex technical problems and helping teams turn product ideas and prototypes into working platforms that can grow and scale. In addition to development, I often collaborate closely with product managers, business analysts, designers, and QA teams to ensure that solutions align with both technical and business goals. I enjoy working with startups and product teams where I can contribute both as a hands-on engineer and as a technical partner in designing and delivering impactful software. 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. 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 Antriksh Narang Antriksh Narang 5 years+ Experienced Dev (Specially in Web Development), can help in python, javascript, react, next.js and full stack web dev technologies. Daniel Vázquez Daniel Vázquez Software Engineer with over 10 years of experience on Startups, Government, big tech industry & consulting. Anthony Akpan Anthony Akpan Developer with 8 years of experience building softwares fro startups Bastien Labelle Bastien Labelle Full stack dev w/ 20+ years of experience MFox MFox Full-stack professional senior engineer (15+years). Extensive experience in software development, qa, and IP networking. Dor Yaloz Dor Yaloz SW engineer with 6+ years of experience, I worked with React/Node/Python did projects with React+Capacitor.js for ios Supabase expert Richard McSorley Richard McSorley Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures.

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

Get Help

Related Cursor 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