Jet Demo error

I try install and run webix jet-demo GitHub - webix-hub/jet-demos: Demos for Webix Jet, and I got an error on start

ERROR in ./sources/bundles.js 19:16
Module parse failed: Unexpected token (19:16)
File was processed with these loaders:
 * ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| 
| 	AboutView.prototype.config = function config() {
> 		var widgets = import( /* webpackChunkName: "widgets" */"modules/customWidgetA");
| 		return widgets.then(function () {
| 
 @ ./sources/app.js 29:0-30 32:1627-1634
ℹ 「wdm」: Failed to compile.

node: v10.16.0
npm: 6.9.0
os: linuxmint

Other one have same error open in this issue After install through NPM, start fails · Issue #6 · webix-hub/jet-demos · GitHub

Any webix team help how to resolve this ?

Hello, finzaiko, this is actually an issue with the webpack. You can try setting your webpack version to 4.28 in the package.json file or try a workaround proposed at the end here. In short, that would be setting these dependencies in your package.json file:

"webpack": "~4.34.0",
"webpack-cli": "3.3.4",
"acorn": "^6.1.1",

After that clear your node_modules and package-lock files and reinstall the packages.

rm -rf package-lock.json
rm -rf node_modules
npm i

Both of these should work for you, alternatively you can also use yarn instead of npm and that should also work as far as i know. If you’re still having troubles, please contact us :slight_smile:

Yes, worked! thanks @Dzmitry