Closed davidbesteltunts closed 10 months ago
To make it work like it used to in <v1
, try setting the flag --reader by-file
.
Try falling back to using a sqlite database. The problem is probably that your pipeline cannot connect/create a database and the way it works right now is by temporarily starting the strapi server to extract all the content types from your app and plugins.
I hope this helps, let me know if it doesn't work
@Alexnortung Thanks for the reply, the "Short answer" option worked.
Hi, I'm getting an error when trying to generate the types, but this error only occurs in the bitbucket pipeline, I have tried to simulate the error locally but I always get success.
This error only appeared now, when I updated the library version to 1.0.2. I used to use version 0.5.5, but this also started generating an error (so I updated to 1.0.2):
Command used in 0.5.5: "t4s -i ../../apps/cms/src -o src/generated --prefix=''" Command used in 1.0.2: "t4s -i ../../apps/cms -o src/generated --prefix='' --reader=load-strapi"
Strapi Version: 4.11.1 Node Version: 16
Strapi Database:
Can you help me? it doesn't matter which version, I just need to be able to generate the types the way they already work, thank you in advance.