Using pivot with webix Pro version 9.3 as npm dependency- Getting warning 'unknown view : pivot'

We are using webix/pivot pro version 9.3.4. We have installed them both as a npm dependency and using webpack we have exposed them both for whole project.

Below is our webpack configuration for pivot and webix -

new webpack.ProvidePlugin({
webix : path.join(__dirname, “node_modules”, “@xbs”, “webix-pro”)
}),
new webpack.ProvidePlugin({
pivot : path.join(__dirname, “node_modules”, “@xbs”, “pivot”)
}),

But when we run our application we get error in console and warning on UI when we use view: “pivot”.

Warning - ‘unknown view : pivot’ .

Error in console -

Uncaught (in promise) TypeError: ui[view] is not a constructor
at Function._view (webix.js:3044:1)
at result._parse_cells (webix.js:20589:1)
at result._parse_cells (webix.js:20904:1)
at new result (webix.js:3163:1)
at Function._view (webix.js:3055:9)
at result._parse_cells (webix.js:20589:1)
at result._parse_cells (webix.js:20904:1)
at new result (webix.js:3163:1)
at Function._view (webix.js:3055:9)
at result.body_setter (webix.js:23075:1)

PS:
1- If we dont use {view: “pivot”} then there are no issues and UI works as expected.
2- If we try to include pivot and webix in script tag using cdn link then also there are no issues. But task here is we are suppose to use npm only.

Any pointers how we can fix it?

@MariyaDemy @intregal @Listopad any updates on it ?

ProvidePlugin is not suitable for pivot. As in your case pivot is not used as a variable.
instead try to import module explicitly once at the very beginning.

import "@xbs/pivot";