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

Đang mở
#90 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
24
Fork
13
Merge trung bình
5 ngày 3 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của strapi/sdk-plugin

Tất cả issue của strapi/sdk-plugin

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.