Node modules not found error in VS Code
- First time developing using docker
Question:
Why am receiving node modules not found, error, how to fix this, what am I missing, I am running dev setup using docker, followed the steps in the documentation.
not sure if this https://docs.twenty.com/contributor/local-setup/docker-setup#optional applies to my case
Welcome | Twenty - Documentation
Twenty is an Open Source CRM that provides flexibility, tailored to your business needs. It helps you break free from vendor lock-in and limitations, and provides the tools you need to harness the full potential of your data while ensuring a sleek and effortlessly intuitive design that teams will love to use.
24 Replies
@Muralidhar Please take a look at: https://docs.twenty.com/contributor/local-setup/ide-setup
Welcome | Twenty - Documentation
Twenty is an Open Source CRM that provides flexibility, tailored to your business needs. It helps you break free from vendor lock-in and limitations, and provides the tools you need to harness the full potential of your data while ensuring a sleek and effortlessly intuitive design that teams will love to use.
especially Step 4 🙂
sorry for this @charles , am feeling very dumb rn, I've gone through step 4 before, I thought I did something wrong, how should I access files in this window....
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Hi @BeardyWeird
make front-start
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
hey am available now @BeardyWeird
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
@BeardyWeird no, am not sure what am missing, i think I'll try the new setup
Hi @Muralidhar, we are done with the setup update, could you try it?
On Windows, please use WSL and follow: https://docs.twenty.com/contributor/local-setup/yarn-setup
It's likely that we still have issues with the setup, I can help you if you face issues
Hi @charles / @BeardyWeird I've set it up, the same docker way, am not sure, what am missing, am still have the issue of node modules not found,
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
yes
Mmmh, is the problem scoped to VSCode ? Can you ssh in the container and run yarn nx start twenty-front for exemple ?
(Make docker-dev-sh to ssh in the container)
yes I believe this is part of docker setup, this is running front and server, am able to make changes, @charles / @BeardyWeird
I shifted to yarn setup, i want to contribute, don't want to get stuck in setup phase now am receiving this 🥲
when I ran this cmd :
make postgres-provision-on-macos-intel
-e \e[32mStep [4/4]: Setting up database...\e[0m
-e \e[32m=======================================================\e[0m
cp: ./postgres/init.sql: No such file or directory
psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: Connection refused
Is the server running locally and accepting connections on that socket?
-e \e[31m
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
This should be fixed, could you try again?
@Muralidhar I have just made a fresh new docker install and it's working smoothly. Please follow:
- https://docs.twenty.com/contributor/local-setup/docker-setup
and then:
- https://docs.twenty.com/contributor/local-setup/ide-setup
and you should be up in no time
Ok will try and let you know @charles
@charles / @BeardyWeird
docker setup am still not able to view the files when i opened the container in vs code
@Muralidhar how do you run your docker?
@charles I opened the docker desktop app, then from the root of the project, I went through docker setups cmds, am I missing something?
Your containers seem healthy
But I'm surprised that you are in ~ folder (here as your are connected as root, it's probably /root)
you should have an /app folder at the root of your container
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
@BeardyWeird if you have time, sure! I did it recently with no issues but I might have missed something