Module federation warnings "No required version specified"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
- #215 by @andreasgerstmayr — closed without merging
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript, webpack
- Domain
- build-system
Research direction
Start by reproducing the plugin build and inspect barchart/package.json near line 29 and barchart/rsbuild.config.ts near line 54. Check how Module Federation determines required versions for the listed shared modules. Done means the build no longer emits these “No required version specified” warnings and the relevant configuration remains correct.
Written by the indexing model from the issue text.
Description
There are a lot of warnings in the build:
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/dist/Legend/Legend.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "immer" in description file/s
│ /home/runner/work/plugins/plugins/package.json
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module immer
@ ../node_modules/@perses-dev/components/dist/Legend/index.js
@ ../node_modules/@perses-dev/components/dist/index.js
@ consume shared module (default) @perses-dev/components@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/dist/ThresholdsEditor/ThresholdsEditor.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "immer" in description file/s
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/package.json
│ /home/runner/work/plugins/plugins/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module immer
@ ../node_modules/@perses-dev/components/dist/ThresholdsEditor/index.js
@ ../node_modules/@perses-dev/components/dist/index.js
@ consume shared module (default) @perses-dev/components@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/components/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/remote/PluginRuntime.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "@emotion/styled" in description file/s
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/package.json
│ /home/runner/work/plugins/plugins/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module @emotion/styled
@ ../node_modules/@perses-dev/plugin-system/dist/remote/remotePluginLoader.js
@ ../node_modules/@perses-dev/plugin-system/dist/remote/index.js
@ ../node_modules/@perses-dev/plugin-system/dist/index.js
@ consume shared module (default) @perses-dev/plugin-system@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/remote/PluginRuntime.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "lodash" in description file/s
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/package.json
│ /home/runner/work/plugins/plugins/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module lodash
@ ../node_modules/@perses-dev/plugin-system/dist/remote/remotePluginLoader.js
@ ../node_modules/@perses-dev/plugin-system/dist/remote/index.js
@ ../node_modules/@perses-dev/plugin-system/dist/index.js
@ consume shared module (default) @perses-dev/plugin-system@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/remote/PluginRuntime.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "date-fns-tz" in description file/s
│ /home/runner/work/plugins/plugins/package.json
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module date-fns-tz
@ ../node_modules/@perses-dev/plugin-system/dist/remote/remotePluginLoader.js
@ ../node_modules/@perses-dev/plugin-system/dist/remote/index.js
@ ../node_modules/@perses-dev/plugin-system/dist/index.js
@ consume shared module (default) @perses-dev/plugin-system@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
File: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/remote/PluginRuntime.js:1:1
⚠ No required version specified and unable to automatically determine one. Unable to find required version for "echarts" in description file/s
│ /home/runner/work/plugins/plugins/package.json
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/package.json
│ It need to be in dependencies, devDependencies or peerDependencies. file: shared module echarts
@ ../node_modules/@perses-dev/plugin-system/dist/remote/remotePluginLoader.js
@ ../node_modules/@perses-dev/plugin-system/dist/remote/index.js
@ ../node_modules/@perses-dev/plugin-system/dist/index.js
@ consume shared module (default) @perses-dev/plugin-system@^0.51.0-beta.0 (strict) (fallback: /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/dist/index.js)
@ ./src/BarChartOptionsEditorSettings.tsx
@ ./src/BarChart.ts
@ container entry
Originally posted by @Nexucis in https://github.com/perses/plugins/pull/73#pullrequestreview-2695834410
description file/s
│ /home/runner/work/plugins/plugins/package.json
│ /home/runner/work/plugins/plugins/node_modules/@perses-dev/plugin-system/package.json
I think it looks at the wrong file, shouldn't it look in package.json in the plugin subfolder: https://github.com/perses/plugins/blob/main/barchart/package.json#L29?
Alternatively, I've seen configs where rsbuild.config.ts imports package.json and specifies requiredVersion here: https://github.com/perses/plugins/blob/main/barchart/rsbuild.config.ts#L54
- Dominant language
- TypeScript
- Stars
- 33
- Forks
- 95
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 40
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from perses/plugins
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
-
[Trino] Split long-format results into one series per labelPossibly taken @dougkirkley claimed this 2 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
[BUG] splunk: export parsing, job polling and missing values are not handled robustlyPossibly taken @AnKiT-GaRG2 claimed this 22 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
[BUG] clickhouse: getTimeSeriesData drops dimension columns, collapsing long-format results into one seriesPossibly taken @aminadojava claimed this 50 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 58/100
perses/plugins#843 · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainers usually reply within 1 day
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/kibana#306401 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
agentes-chat/agentes-chat#927 ·
Maintainers usually reply within 1 day
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPossibly taken @seenimohamed claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#2769 ·
Maintainers usually reply within 1 day