-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Imports broken #20306
Comments
This also breaks https://github.com/strapi-community/strapi-plugin-slugify and i guess more repo's. |
This isn't a bug, we never supported importing code this way and doing so was at author's own risk. IMO I would copy the code you require into your codebase where possible & notify library authors elsewhere :) |
Hi 👋 Are you very sure about your decision though? Importing and exporting these crucial functions should be straightforward for the strapi team to implement and would help a lot of developers. Let me know what your thoughts are. Kind regards, |
Error
We use several components from the strapi code like:
Throughout our codebases
Now i think since strapi 4 has been rewritten in Typescript, when we try to upgrade to strapi 4.15.5 it cannot load the functions anymore because they have been moved to the "dist" folder. Though when we try to rename the imports to
@strapi/strapi/dist/core-api/service/pagination
instead of@strapi/strapi/lib/core-api/service/pagination
we get the following errorQuestion
System info
The text was updated successfully, but these errors were encountered: