Following steps described in contribution page, I did
npm run install-node-dependencies
Setup postgres, its extension, and so on
npm run dev:server
But the console prints an error complaining Cannot find module ‹ @peertube/peertube-models › or its corresponding type declarations. During installing dependencies stage, I can see that local packages are installed include @peertube/peertube-*. For instance,
This seems to me the server code can not locate the module in packages directory locally at runtime. But I do not find those modules in node_modules. I am not sure how to fix this. Any suggestions? Please let me know if more information is needed. Thanks.
I have rerun that command npm run install-node-dependencies and then execute npm run dev:server a few times, but the issue remains, even removing node_modules before executing those commands again. The branch is develop.
I can also see references section in server/tsconfig.json pointing to the packages directory, which is exactly the same in Chocobozzz’s tsconfig.json and Framasoft’s tsconfig.json. I do git clone from both Chocobozzz (GitHub) and Framasoft (Framasoft.org) repository, executing the above 2 npm commands. The error is the same. So maybe some steps I miss?
i requested a build of server with npm run build:server
it is still Building … will see how it ends, but at least client is building and find peertube dependencies.