You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just created a strapi project using the Blog template and also added the --ts flag so typescript is enabled.
However: strapi won't recognize the collections etc. in the roles section in the template since they are .js files and not .ts.
Result: you can create collections that are created by the template like 'article', but when calling the rest api or checking permissions in the admin panel the collection is not shown.
Results in this error:
I just encountered this bug as well. If you create the content types manually then everything works fine - but using the --template blog argument with the --ts flag causes this issue.
I just created a strapi project using the Blog template and also added the --ts flag so typescript is enabled.
However: strapi won't recognize the collections etc. in the roles section in the template since they are .js files and not .ts.
Result: you can create collections that are created by the template like 'article', but when calling the rest api or checking permissions in the admin panel the collection is not shown.
Results in this error:
when calling e.g. this rest api:
GET http://localhost:1337/api/articles
The text was updated successfully, but these errors were encountered: