Paqmind / react-ultimate

React Ultimate Example
MIT License
303 stars 64 forks source link

Webpack failed to compile #116

Closed nastae closed 6 years ago

nastae commented 6 years ago

When I write: npm run webpack-server, I give:

.................................................................................................. ERROR in ./~/frontend/routes.js Module parse failed: C:\Users\Aurimas\source\repos\robot\node_modules\frontend\r outes.js Unexpected token (17:2) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (17:2) at Parser.pp$4.raise (C:\Users\Aurimas\source\repos\robot\node_modules\webpa ck\node_modules\acorn\dist\acorn.js:2221:15) at Parser.pp.unexpected (C:\Users\Aurimas\source\repos\robot\node_modules\we bpack\node_modules\acorn\dist\acorn.js:603:10) at Parser.pp$3.parseExprAtom (C:\Users\Aurimas\source\repos\robot\node_modul es\webpack\node_modules\acorn\dist\acorn.js:1822:12) at Parser.pp$3.parseExprSubscripts (C:\Users\Aurimas\source\repos\robot\node _modules\webpack\node_modules\acorn\dist\acorn.js:1715:21) at Parser.pp$3.parseMaybeUnary (C:\Users\Aurimas\source\repos\robot\node_mod ules\webpack\node_modules\acorn\dist\acorn.js:1692:19) at Parser.pp$3.parseExprOps (C:\Users\Aurimas\source\repos\robot\node_module s\webpack\node_modules\acorn\dist\acorn.js:1637:21) at Parser.pp$3.parseMaybeConditional (C:\Users\Aurimas\source\repos\robot\no de_modules\webpack\node_modules\acorn\dist\acorn.js:1620:21) at Parser.pp$3.parseMaybeAssign (C:\Users\Aurimas\source\repos\robot\node_mo dules\webpack\node_modules\acorn\dist\acorn.js:1597:21) at Parser.pp$3.parseParenAndDistinguishExpression (C:\Users\Aurimas\source\r epos\robot\node_modules\webpack\node_modules\acorn\dist\acorn.js:1861:32) at Parser.pp$3.parseExprAtom (C:\Users\Aurimas\source\repos\robot\node_modul es\webpack\node_modules\acorn\dist\acorn.js:1796:19) @ ./frontend/app.js 29:14-40 webpack: Failed to compile.

ivan-kleshnin commented 6 years ago

@nastae it looks like Webpack or Babel problem, maybe specific to Windows, which I don't have time or desire to investigate. Sorry, can't help with this one.