如何使用laravel-elixir在laravel 5.3中设置react.js?

时间:2016-12-07 11:41:28

标签: laravel reactjs laravel-5.3 laravel-elixir

我正尝试在laravel前端设置环境中按照guid使用npm安装react.js,但是没有成功安装laravel。

这里面临的问题如下:

events.js:141
      throw er; // Unhandled 'error' event
      ^
Error: Parse Error: Line 9: Illegal export declaration
    at throwError (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:2813:21)
    at throwErrorTolerant (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:2825:24)
    at parseSourceElement (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:6387:17)
    at parseProgramElement (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:6446:16)
    at parseProgramElements (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:6478:29)
    at parseProgram (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:6491:16)
    at Object.parse (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/esprima-fb/esprima.js:7653:23)
    at getAstForSource (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/jstransform/src/jstransform.js:251:21)
    at transform (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/node_modules/jstransform/src/jstransform.js:274:11)
    at innerTransform (/opt/lampp/htdocs/react_laravel/node_modules/react-tools/main.js:94:10)

0 个答案:

没有答案