Closed Alexnortung closed 1 month ago
This is fixed in this repo for Strapi 5 plugins, and it also appears to be fixed in strapi/strapi develop
branch for Strapi 4 plugins as well, so I'll close this and if the issue is still present on strapi/strapi an issue can be recreated there.
Bug report
Required System information
Describe the bug
I followed the guide for setting up a new plugin with the experimental
strapi plugin:init
command. I was unable to use the server part of the plugin in an external strapi project. It turned out thatyalc
was unable to use./strapi-server.js
.https://github.com/strapi/strapi/blob/a76a2ee7a9a66bc0233e678ca062086c34855a5c/packages/core/strapi/src/commands/actions/plugin/init/action.ts#L340
SOLUTION: Simply changing this value in the
package.json
file to"strapi-server.js"
resolved the issueSteps to reproduce the behavior
plugin:init
yalc
command from the logs.Expected behavior
I expected that the output of the
plugin:init
command would just work without having to change anything inpackage.lock
.