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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -