-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
4.10
-
Important
-
None
-
Rejected
-
All
-
If docs needed, set a value
Description of problem:
Mismatch between plugin / console dependencies versions causes console crash entire deployment details page. This may occurs on some other pages.
Version-Release number of selected component (if applicable):
All
How reproducible:
You can use the dynamic plugin sdk example provided in the console
Steps to Reproduce:
1. Enable deployment tab in console-extensions.json
2. Have breaking changes between dependencies ("css-loader": "^6.5.1" for example)
3. Go to Deployments > Deployment details of any item
Actual results:
The page totally crash without managing error. You can't access other tabs until you disable the faulty plugin.
Expected results:
The console should manage import errors to check if everything is ok.
If an error occurs, a proper message should be displayed in the corresponding tab allowing usage of other tabs.
Additional info:
Adding 'config.optimization.concatenateModules = false' in webpack.config.ts on plugin side solve this issue.
The 'dynamic-demo-plugin' is outdated and should include this fix. Also, there should be testing + styling support in these examples.
Original conversation:
https://coreos.slack.com/archives/C011BL0FEKZ/p1643291876147900