easy-team / egg-react-webpack-boilerplate

Egg React Server Side Render(SSR) / Client Sider Render(CSR)
https://easyjs.cn/egg-react
MIT License
671 stars 93 forks source link

启动就报错了 #2

Closed sunshinexb closed 7 years ago

sunshinexb commented 7 years ago

ERROR in ./~/_babel-loader@7.1.2@babel-loader/lib!./app/web/framework/entry/loader.js!./app/web/page/hello/hello.jsx Module build failed: SyntaxError: C:/Users/xiaobin/Desktop/egg/egg-react-webpack-boilerplate/app/web/page/hello/hello.jsx: Bad character escape sequence (4:33)

  2 |     import React from 'react';
  3 |     import ReactDom from 'react-dom';
> 4 |     import Hello from '\egg\egg-react-webpack-boilerplate\app\web\page\hello\hello.jsx';
    |                                  ^
  5 |     const state = window.__INITIAL_STATE__;
  6 |     ReactDom.render(<Hello {...state} />, document.getElementById('app'));
  7 |   

 @ multi ./~/_webpack-hot-middleware@2.18.2@webpack-hot-middleware/client?path=http://127.0.0.1:9000/__webpack_hmr&noInfo=false&reload=false&quiet=false babel-loader!./app/web/framework/entry/loader.js!./app/web/page/hello/hello.jsx
hubcarl commented 7 years ago

windows 系统? 版本是 7 还是 10 ? 目前完整的测试都是基于mac 环境, windows 最近在用虚拟机测试

sunshinexb commented 7 years ago

@hubcarl windows 10 node版本 v8.1.4

EvanLiu2968 commented 6 years ago

我也试了,在Mac上完全没问题,windows7上跑原代码都build不了(nodev8以上),还有其他的小问题,windows被抛弃了。。。