ok,thank you!
could you please have a check with this problem? It is urgent.
- When I want to import ‘@xbs/spreadsheet/spreadsheet.js’ I got the error ”webix is not defined“ . then I add the next section in the webpack.config.js:
plugins: [
new webpack.ProvidePlugin({
// SET PATH TO WEBIX HERE
webix: path.join(__dirname, “node_modules”, “@xbs”, “webix-pro”)
})
],the problem is solved!
2.But now, when I do unit test ,this problem is still happened.
Error1: webix is not defined in …/spreadsheet.js
Error2: node_modules\@xbs\webix-pro\webix.js Can’t locate codebase
By the way, I use react + enzyme + jest.
I have posted it on this link:
https://forum.webix.com/discussion/35526/webix-6-and-importing#latest