Skip to content

[bug]: plugin loaded success but routes/controllers doesn't show up( neither can be used) #90

@1057437122

Description

@1057437122

What version of @strapi/sdk-plugin are you using?

(base) ➜ strapi-admin git:(master) ✗ pnpm --version
10.10.0
(base) ➜ strapi-admin git:(master) ✗ node --version
v20.10.0

I'm using monorepo environment followed here: create a plugin

What's Wrong?

The plugin shows up in admin panel plugin page. But controllers and routes not show up with cmd: strapi routes:list or strapi controllers:list

To Reproduce

  1. create a new strapi admin project by this cmd: pnpm dlx create-strapi-app@latest
  2. create a new folder => src/plugins/buld-uploader ( I want to call it bulk loader ,but there's a type error, but I think it doesn't make sense to change it , so ~)
  3. add the methods following this page: https://docs.strapi.io/cms/plugins-development/server-api
  4. add package.json file
  5. add plugin config in src/plugin.ts

I created a github public repo here => https://github.com/1057437122/strapi-plugin-bug-maybe.git

Expected Behaviour

controllers and routes show up in cmd: strapi routes:list and strapi controllers:list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bugIssue reporting a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions