facebook-business-sdk-codegen
facebook-business-sdk-codegen copied to clipboard
Cannot build due to `src/ doesn't exist` issue
Checklist
- [x] I've updated to the latest released version
- [x] I've searched for existing GitHub issues
- Similar questions: https://github.com/facebook/facebook-business-sdk-codegen/issues/34
- [x] I've looked for existing answers on Stack Overflow and the Facebook Developers Group
- [x] I've read the Code of Conduct
- [x] This issue is not security related and can safely be disclosed publicly on GitHub
Environment
Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:
- Node Version:
20.11.1
- NPM Version:
10.2.4
- Babel Version:
6.26.0 (babel-core 6.26.3)
Goals
I want to run CodeGenerator.js as the README.md described.
The command I used to run:
- npm run build && node lib/CodeGenerator.js java
- npm run build
Expected Results
CodeGenerator.js
successfully executed.
Actual Results
xxxxxx@xxhost:~/GitProjSrc/facebook-business-sdk-codegen$ pwd
/home/xxxxxx/GitProjSrc/facebook-business-sdk-codegen
xxxxxx@xxhost:~/GitProjSrc/facebook-business-sdk-codegen$ npm run build && node lib/CodeGenerator.js java
> [email protected] build
> babel src/ -d lib/
src/ doesn't exist
xxxxxx@xxhost:~/GitProjSrc/facebook-business-sdk-codegen$ npm run build
> [email protected] build
> babel src/ -d lib/
src/ doesn't exist
Steps to Reproduce
npm run build && node lib/CodeGenerator.js java
I have no js related experience, here is how I install the npm and node js
curl -fsSL https://deb.nodesource.com/setup_20.x > tmp_install_nodejs.sh
bash tmp_install_nodejs.sh
sudo apt install nodejs -y
sudo npm install -g babel-cli