jet-demos fails to start

I cloned the jet-demos repository and when I try to start webpack I get this error:

ERROR in ./sources/bundles.js 19:16
Module parse failed: Unexpected token (19:16)
You may need an appropriate loader to handle this file type.

=> var widgets = import( /* webpackChunkName: “widgets” */“modules/custo mWidgetA”);

Can anyone tell me how to correct this? I would really like to study the demo a little. I’m trying to figure out how to split code and lazy load modules. Hopefully this will help.

Best Regards,
jharris

It seems to be a bug in the latest webpack

You can change webpack verson in package.json to 4.28

By the way issue doesn’t occurs if you are installing packages with yarn

Thank you maksim… that worked with webpack.