Reporting plugin not working

I work with docker swarm
When I use kibana in debug mode (yarn start --oss) and add plugin in “plugins” folder ,
I receive same error when execute plugin and at kibane setup I have the following error
‘’’
ERROR in /home/comijac/metriks/kibana_10/kibana/packages/kbn-optimizer/target/worker/entry_point_creator.js
│ Module not found: Error: Can’t resolve ‘…/…/…/…/plugins/opendistroReportsKibana/public’ in ‘/home/comijac/metriks/kibana_10/kibana/packages/kbn-optimizer/target/worker’
│ resolve ‘…/…/…/…/plugins/opendistroReportsKibana/public’ in ‘/home/comijac/metriks/kibana_10/kibana/packages/kbn-optimizer/target/worker’
│ using description file: /home/comijac/metriks/kibana_10/kibana/packages/kbn-optimizer/package.json (relative path: ./target/worker)
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ using description file: /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/package.json (relative path: ./public)
│ no extension
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public doesn’t exist
│ .js
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.js doesn’t exist
│ .ts
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.ts doesn’t exist
│ .tsx
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.tsx doesn’t exist
│ .json
│ Field ‘browser’ doesn’t contain a valid alias configuration
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.json doesn’t exist
│ as directory
│ /home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public doesn’t exist
│ [/home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public]
│ [/home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.js]
│ [/home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.ts]
│ [/home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.tsx]
│ [/home/comijac/metriks/kibana_10/kibana/plugins/opendistroReportsKibana/public.json]
│ @ /home/comijac/metriks/kibana_10/kibana/packages/kbn-optimizer/target/worker/entry_point_creator.js 1:227-296
‘’’