javascript - "Unexpected reserved word You may need an appropriate loader to handle this file type." using Webpack in Reapp -


i'm trying import javascript code reapp project. i've error when run reapp run.

module parse failed: line 8: unexpected reserved word may need appropriate loader handle file type. | var searchpagestore = require('../../../../core/modules/searchpage/store/searchpagestore');

it looks using of require function causes error. however, can't modify code because it's reused several other javascript applications.

any suggestion on how fix error message?

thanks!


Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World