Comments (5)
@njugray
It works! Thank you for the hard work!
from beidou.
@laihaibo
it seems to be an error path resolving on Windows, I am working on this and publish a hotfix version as soon as possible.
thanks for your feedback.
from beidou.
@njugray
it seems doesn‘t work。
console.log in PowerShell:
2017-12-20 21:20:00,717 WARN 12388 duplicateConfig error: ENOENT: no such file or directory, open 'C:\Users\laiha\Documents\node\beidou-demo\run\agent_Wed Dec 20 2017 21:20:00 GMT+0800 (**标准时间)_config.json' Error: ENOENT: no such file or directory, open 'C:\Users\laiha\Documents\node\beidou-demo\run\agent_Wed Dec 20 2017 21:20:00 GMT+0800 (**标准时间)_config.json' at Object.fs.openSync (fs.js:646:18) at Object.fs.writeFileSync (fs.js:1291:33) at BeidouAgent.dumpConfig (C:\Users\laiha\Documents\node\beidou-demo\node_modules\beidou-core\lib\core\agent\index.js:36:10) at process.nextTick (C:\Users\laiha\Documents\node\beidou-demo\node_modules\egg\lib\egg.js:59:50) at _combinedTickCallback (internal/process/next_tick.js:131:7) at process._tickCallback (internal/process/next_tick.js:180:9)
2017-12-20 21:24:32,131 ERROR 4872 [-/::1/-/10ms GET /] nodejs.AssertionError [ERR_ASSERTION]: Can't find \index.jsx from C:\Users\laiha\Documents\node\beidou-demo/client at Map.resolve (C:\Users\laiha\Documents\node\beidou-demo\node_modules\egg-view\lib\view_manager.js:74:5) at resolve.next (<anonymous>) at onFulfilled (C:\Users\laiha\Documents\node\beidou-demo\node_modules\co\index.js:65:19) at <anonymous> generatedMessage: false name: 'AssertionError [ERR_ASSERTION]' code: 'ERR_ASSERTION' actual: undefined expected: true operator: '==' pid: 4872
When I open 'http://localhost:6001/' in browser, check the 'Show all frames':
-
node_modules\egg-view\lib\view_manager.js
:
`
let filename = this.fileMap.get(name);
if (config.cache && filename) return filename;// try find it with default extension
filename = yield resolvePath([ name, name + config.defaultExtension ], config.root);
assert(filename,Can't find ${name} from ${config.root.join(',')}
);// set cache
this.fileMap.set(name, filename);
return filename;
}
` -
node_modules\co\index.js
`
*/function onFulfilled(res) {
var ret;
try {
ret = gen.next(res);
} catch (e) {
return reject(e);
}
next(ret);
}
`
from beidou.
@laihaibo upgrade pkg version and try again pls.
from beidou.
@laihaibo
Validated with PowerShell 6
on Window 10 x64
.
Redux Example generated by beidou init
and bootstrap with npm start
from beidou.
Related Issues (20)
- 路由错误最小复现
- 招贤纳士
- v2.2.1版本修改factory.getPlugin返回值无效 HOT 1
- with-dva 项目运行警告
- with-dva 在官方demo 修改成路由的模式
- 如何使用app.injectCsrf和app.injectNonce HOT 1
- Build framework on the top of Beidou HOT 2
- npm包版本问题
- 关于设置alias,出现Debug下无法加载资源
- ReactDOM.hydrate会覆盖服务端渲染结果,如果注释,相关事件就无效。如何处理? HOT 2
- facebook分享报206 HOT 4
- client获取controller数据 HOT 2
- 请问现在beidou还更新吗,有更好的解决方案了吗? HOT 2
- NODE_LOG_DIR not configured HOT 1
- typescript模板打包报错 HOT 3
- with-react-loadable 無法載入 HOT 1
- webpack 服务是否可以支持https
- 继续升级,作者继续啊
- 从零开始搭建应用 无法启动 HOT 3
- 主进程会偶尔收到SIGTERM信号导致程序exit HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beidou.