-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General feedback about Strapi 5 support #434
Comments
also need export |
@reslear would the |
As you guys might know, I'm not actively maintaining this repository. Would you mind telling me once everything is good so I can release a major version? |
✅ 1, 3 - fixed
|
@reslear 2 sounds great to me. About the other points idk. I just started using this module and Strapi, so I don't know much yet. |
Hi guys, I'm trying to use useStrapi module (V5), nuxt can't find useStrapi, however I can use useStrapiUser, UseStrapiToken, useStrapiAuth, etc... do you know why? |
@Zellokr Do you use the latest Edge version? |
Could you try |
It works, however type error "V5" in nuxt.config.ts still appears. Thank you! :) |
|
Stopping by here from the Strapi team (as I work for Strapi) to mention that if anyone needs any information clarity on how something works or help maintain or build support for Strapi 5 please don't hesitate to stop by our Discord: https://discord.strapi.io Or if you are in dire need of some information for this module you can email me directly: [email protected] (please don't send emails asking for normal application support but if it's related to this module then it's all good). Thanks! |
Just released a |
Okie! Will do |
I'm creating this general issue to collect some feedback from other people about the work done in past PRs to support Strapi 5 and how we can improve it. If you want it, maybe I create separate issues to track these individually.
After installing the module myself and using v5 for a while in a personal project I've found the following:
nuxt.config.ts
file:interface
instead of atype
as the generic type of theuseStrapi<T>()
composable it will not give you the correct types. This didn't happen to me on the v4 composable and I don't even know if this is fixable (because it seems to be a TS thing) but I guess at least we should tell people to usetype
s instead ofinterface
s in the docs, or even better, try to find a workaround. In my opinion, users should not be bothered with this and they should be able to use both if they want. I've created a small repro here: https://tsplay.dev/WYxeQm.find
request to a collection to query all elements, thelocale
key has anull
value, which differs from the current typelocale?: string
, I think it should belocale?: string | null
instead:For now, that's what I've found. Let me know what you think!
Related PRs:
v5
#424Strapi5ResponseData
to automatically addStrapiSystemFields
#425create
/update
inv5
#426The text was updated successfully, but these errors were encountered: