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

オープン
#90 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
24
フォーク
13
平均マージ
5日 3時間
マージ済み PR(30日)
5

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

strapi/sdk-plugin のほかの issue

strapi/sdk-plugin の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。