Cannot find module './cli.js'
Bug Description
When I was following the docs to deploy twenty by Docker, there was this Error in my machine:
I tried in MacOS and CentOS, same issue.
I'm also getting this same issue on MacOS
I have encountered the same issue on WSL (Ubuntu 20.04.5 LTS), but not on Docker. It was the local setup.
From me, it was fixed by resetting the workspace to the original by git reset --hard then execute yarn nx database:init twenty-server again.
It was perfectly working fine yesterday with the same setup, so I guess some left-over caches can cause a problem?
I will come back to this issue to see how to reproduce the issue and solve it properly.
We updated the NX setup so this probably shouldn't occur anymore with yarn nx