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

Abierto
#90 0 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
api, backend

Línea de trabajo

Start by inspecting the linked reproduction repository, especially src/plugins/buld-uploader, src/plugin.ts, and its package.json. Follow the server API documentation and run strapi routes:list and strapi controllers:list to compare the plugin setup with the generated output. Done means the plugin's routes and controllers appear in both command results and can be used.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

issue: bug
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.

Lenguaje dominante
TypeScript
Estrellas
24
Forks
13
Merge medio
5 d 3 h
PR fusionados (30 d)
5

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de strapi/sdk-plugin

Todos los issues de strapi/sdk-plugin

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.