supergregS
Convex Community3y ago
18 replies
supergreg

create-react-app `convex/` folder location

Using a regular setup via npx create-react-app. Getting this error:
Module not found: Error: You attempted to import ../../convex/_generated/react which falls outside of the project src/ directory. Relative imports outside of src/ are not supported.
You can either move it inside src/, or add a symlink to it from project's node_modules/.

Since the convex library created the convex folder in that location, is a symlink the recommended solution?

Here is my project and the relevant part of New.tsx
Screenshot_2023-03-01_at_2.09.55_PM.png
Was this page helpful?