w3tecch / express-typescript-boilerplate

A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
MIT License
3.31k stars 905 forks source link

Got Error on run yarn setup #192

Open texiontech opened 4 years ago

texiontech commented 4 years ago

I've got this error message when try to run setup project

TypeError: typeorm_seeding_1.loadEntityFactories is not a function

Screen Shot 2563-03-25 at 00 27 05

When I've go to the file seed.ts it's seem like no const define for

loadConnection, loadEntityFactories, loadSeeds, runSeed

Screen Shot 2563-03-25 at 00 28 38
mo-kalaleeb commented 4 years ago

Me 2 :(

texiontech commented 4 years ago

Me 2 :(

I'v fix by run this command

npm install typeorm-seeding@1.0.0-beta.6 --save

usmanumar97 commented 4 years ago

Alright, So I faced the same problem and here is how I fixedit

1) I was using the latest node version 13.0 2) I downgraded to node 10.12.0 3) Then I ran this ----- npm install bcrypt@3.0.0 4) It worked fine for me

P.S - Bcrypt support forNode 13 is just not stable.

Please update if you have any other suggestions or better solutions

dayze commented 4 years ago

If you have an issue with bcrypt, use the latest version 3.0.6

from their documentation

12 | >= 3.0.6
arashjfz commented 2 years ago

me 2

YonatanCatav commented 2 years ago

@arashjfz hi I also had this issue and fixed it in this PR (that wasn't reviewed yet) https://github.com/w3tecch/express-typescript-boilerplate/pull/249 you can use this branch, it should run without any problems