T
Twenty2y ago
Mrldhr

Error TS5042: Option 'project' cannot be mixed with source files on a command line

while running npx nx start I saw a similar thread before here #Error TS5042: Option 'project' cannot be mixed with source files on a command line - Tried to re cloning the project on local didn't work ERROR:
nx run twenty-ui:build
vite v5.0.10 building for production... transforming... error TS5042: Option 'project' cannot be mixed with source files on a command line.
16 Replies
charles
charles2y ago
what's your node and yarn version? 🙂
Mrldhr
MrldhrOP2y ago
node: v18.17.1 , yarn: 4.0.2 @charles
charles
charles2y ago
what's your folder path? could you go in your twenty folder and do pwd
Mrldhr
MrldhrOP2y ago
Folder path: /Users/apple/Public/untitled folder/apps/twenty
No description
charles
charles2y ago
ok, that's why 🙂 you should avoid have spaces in your folders name (here "untitled folder"), it's generally not supported (here I believe it's an issue with nx)
Mrldhr
MrldhrOP2y ago
oh wow interesting, okay it's up, but what am I doing wrong again, @charles
No description
No description
charles
charles2y ago
@Muralidhar could you post the whole output (as txt, screenshot is not the best way to share error logs 🙂 )
Mrldhr
MrldhrOP2y ago
charles
charles2y ago
schema "graphql" does not exist Have you followed https://docs.twenty.com/start/local-setup ?
arnavsaxena
arnavsaxena2y ago
yes, and facing graphql does not exist
Mrldhr
MrldhrOP2y ago
hey @arnavsaxena I am running postgres on docker on my local (my system: mac os intel) it's working fine
arnavsaxena
arnavsaxena2y ago
I am doing make postgres-on-macos-arm and i get "graphql" does not exist. I have tried removing all versions of postgres from my system, ensuring I am running node 18.17.1. Yet, failing.
Mrldhr
MrldhrOP2y ago
okay, I faced the issue while running postgres on local, not sure, why it happened, let's see if anyone can answer your query.
charles
charles2y ago
Sorry for the slow answer here. I'm currenlty using postgres on mac os on my computer so it should work. Maybe the installation scripts are broken. What output do you get whil running make postgres-on-macos-arm?
arnavsaxena
arnavsaxena2y ago
We are using macOS M2. We tried uninstalling all Postgres, all sets of things but still used to get graphql does not exist. We even tried to create a new user but gave the same error. Eventually, we erased and formatted our macOS and it started to work. Phew 😮‍💨
shubhamyadav_1
@Mrldhr can please tell how can you solve the " Error TS5042: Option 'project' cannot be mixed with source files on a command line"

Did you find this page helpful?