FoalTS / foal

Full-featured Node.js framework, with no complexity. 🚀 Simple and easy to use, TypeScript-based and well-documented.
https://foalts.org/
MIT License
1.88k stars 137 forks source link

Foal ts deploy Heroku Error : foal: not found #1055

Closed bobwatcherx closed 2 years ago

bobwatcherx commented 2 years ago

i want deploy foalts project to heroku , but get error after : git push heroku master :

$ foal rmdir build && tsc -p tsconfig.app.json remote: /bin/sh: 1: foal: not found remote: error Command failed with exit code 127. remote: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. remote: remote: -----> Build failed

martinsnihur commented 2 years ago

Hello, I added the following packages to "dependencies" in the package.json file to make it work.

"@foal/cli": "^2.8.1", "@foal/typestack": "^2.8.1", "class-transformer": "^0.5.1", "class-validator": "^0.13.2", "pg": "^8.7.3",

Luck!

LoicPoullain commented 2 years ago

Did it work @bobwatcherx? The error probably comes from the @foal/cli which is installed globally on your machine but not on Heroku.

bobwatcherx commented 2 years ago

YES this SOLVED , thanks