Coder Social home page Coder Social logo

Comments (5)

laihaibo avatar laihaibo commented on May 1, 2024 1

@njugray
It works! Thank you for the hard work!

from beidou.

njugray avatar njugray commented on May 1, 2024

@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.

laihaibo avatar laihaibo commented on May 1, 2024

@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':

  1. 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;
    }
    `

  2. node_modules\co\index.js
    `
    */

    function onFulfilled(res) {
    var ret;
    try {
    ret = gen.next(res);
    } catch (e) {
    return reject(e);
    }
    next(ret);
    }
    `

from beidou.

njugray avatar njugray commented on May 1, 2024

@laihaibo upgrade pkg version and try again pls.

from beidou.

njugray avatar njugray commented on May 1, 2024

@laihaibo
Validated with PowerShell 6 on Window 10 x64.
image
Redux Example generated by beidou init and bootstrap with npm start

from beidou.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.