bug: exposed methods in @openshift-console/dynamic-plugin-sdk/lib/utils/k8s refer to @console/internal #12255
Labels
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
When trying to use functions in @openshift-console/dynamic-plugin-sdk/lib/utils/k8s, the build is failing because it tries to resolve @console/internal. Webpack does not find this module, and hence fails.
A minimal setup reproducing the error:
package.json
index.mjs
Install and build with esbuild:
If you remove the offending line,
node_modules/@openshift-console/dynamic-plugin-sdk/lib/utils/k8s/k8s-utils.js:7
, it works (both Esbuild and Webpack are happy and the utils I am using works).The text was updated successfully, but these errors were encountered: