-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Failed to build Typescript Plugin after v4.5.1; Cannot find module design-system/icons #15072
Comments
The solution to this would be to add some sort of declare module '@strapi/design-system/*';
declare module '@strapi/icons/*'; Because right now there are no types, but we're using the |
@joshuaellis there is a combination of errors (not only with import) Can you suggest how to fix this? This happens on clean project. |
Also, this trick unfortunately didn't help :( |
This comment was marked as spam.
This comment was marked as spam.
Hello, we are marking this issue as closed as it has been combined into a centralized Tracking issue for all Typescript issues. Please see: #15225 If you believe this was merged into the tracking issue in error please let us know. For any further debug information please use the tracking issue. Thanks! |
Looks like the design system v2 items (pagelink, nextlink, previouslink, pagination) are still impacted by this. The icons part does work now (as of 4.5.6) |
i don't understand why I have this error only at my server. If I try to build the project locally, it works fine. If I try to build at my digitalocean server, it throws this error. Both my server and my local servers are using the same version for node (v18.12.1) and for npm (6.14.18). If someone think about a possible reason, please illuminate me! |
Might be related to this issue @matepaiva |
Bug report
Required System information
Describe the bug
Unable to use
@strapi/icons
or@strapi/design-system
in custom typescript plugins after v4.5.1 as the modules/types cannot be found.Steps to reproduce the behavior
Expected behavior
Expect strapi to build successfully.
Screenshots
n/a
Code snippets
Additional context
If you downgrade strapi dependencies to
v4.5.1
the build is successful.May relate to: #14925
Adding
@strapi/icons
or@strapi/design-system
to either/both the project/plugin does not solve the issue.The text was updated successfully, but these errors were encountered: