Module parse failed: Unexpected token

  • I've been attempting to recompile the jsreport-studio package (npm run build), but keep hitting a strange error that I cannot resolve:

    ERROR in ./src/client.js 77:18
    Module parse failed: Unexpected token (77:18)
    You may need an appropriate loader to handle this file type.
    |   const routes = getRoutes(window.Studio.routes)
    >   let component = <Router history={history}>{routes}</Router>
    |   ReactDOM.render(
     @ ./src/theme/ (multi ./src/client.js font-awesome-webpack-4!./src/theme/ main[0]

    I've been doing some research and found references to similar errors that all point to dependency issues with webpack and acorn. However, none of the fixes suggested seem to be working.

    Do you have any thoughts on how to remedy this issue?


Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.