-
Notifications
You must be signed in to change notification settings - Fork 7
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
@strapi/plugin-sdk
package.json
validation too aggressive, cannot add additional exports
#73
Comments
Hello @xenobytezero, I see you are wanting to ask a question that is not really a bug report,
Please see the following contributing guidelines for asking a question here. Thank you. |
Transferred to correct repo |
Would love to see this fixed, it prevents me from exporting my stylesheets! My plugin is very barebone, it includes just a little css. It bundles and works as expected. But as soon I add this to my
I get: Which is really unfortunate, because vite needs this to accept my css file as an import:
@import "strapi-plugin-lexical/dist/style.css"; import "strapi-plugin-lexical/dist/style.css"; |
Bug report
Required System information
Describe the bug
When updating my plugins, I want to also export from the package a collection of types that can be used by developers/users of the plugin (things like the shape of the Config, shape of endpoint data, etc).
Now that Strapi v5 has switched to using the
exports
map I wanted to add my types to this export map.After adding it, trying to
build
/watch
with the@strapi/plugin-sdk
(strapi-plugin build
) I get the following errorI also tried to use the object form of an export entry, and got a similar error, indicating that it had to use the same format as the
strapi-admin
/strapi-server
objects, which doesn't work in this case.The text was updated successfully, but these errors were encountered: