Yarn failing on macOS and Storybook command not working locally
Yarn version: 4.4.0
Repo is already sync with latest update on main branch in github


37 Replies
Hi @MS_07, what OS are you on? (what version + what arch)
macOS Sequoia 15.3
Have you by any chance removed the lockfile or re-generated it ? If yes please reset it to main
Have you tried recloning the repo from scratch ?
Have you tried removing node_modules folder too ?
No why remove? The docs has process to setup and reset I follow that.
For one time u can do that process of removing node modules and reinstalling but if this require everytime then this a bad behavior for any repo to setup locally.
I don't understand, that's not the matter
node_modules
are not versioned within the repo
You're encountering dependencies issue, have you tried cleaning your workspace back to its original state
Also what is your node version ?23.6.1
How this is done? By resetting database?
In my opinion it has maybe nothing to deal with twenty
Your dev env dependencies seems to be corrupted for some reason
To address the exact issue, could you please:
- Try resetting your whole dev env dependencies by remove
node_modules
then yarn
( double check you have not updated the yarn.lock
lockfile )
- If still not working try re-cloning a repo
- Finally switch to node 18.17.0
using volta
or nvm
So this way we can get a better vision of the issueDeleted nodemodules and yarn lock file and ran yarn

I have never touched yarn lock file before too that I am sure.
Yeah did via nvm let me see if it works or not

try running
npx nx run twenty-front:storybook:serve:dev
Will this fix storybook issue too ?
Yep

Storybook not fixed. Is it running at your side?
Yes, please find related video
Please double check your node version between attempts
Yeah I switched it but globally node didn't switched the version now I switched again and it is running
Thank you so much @Prastoin
Sounds great ! Your welcome, enjoy coding !
Now something is breaking the main app to run locally


command is npx nx start
Please share more information on how to reproduce this
same node js version 18.17.0
Seems related to translations
Please run:
npx nx database:reset twenty-server
reactdatepicker and translations both throwing error
Are you on main branch ?
Yeah main branch is synced

please run in sequence:
npx nx build twenty-shared
npx nx build twenty-emails
Also reset your nx cache
npx nx reset
I have no issue running npx nx start
from scratch based main

Try running
npx nx run twenty-emails:lingui:extract
npx nx run twenty-emails:lingui:compile
I feel like we should create a new thread scoped to your new errorI cloned fresh and again setup instead of running individual commands and going down in that rabbit hole
Now everything up
Well done, best thing to do here
Have a nice weekend