Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启动报错 #8

Closed
yuedun opened this issue Dec 27, 2016 · 1 comment
Closed

启动报错 #8

yuedun opened this issue Dec 27, 2016 · 1 comment

Comments

@yuedun
Copy link

yuedun commented Dec 27, 2016

TypeError: Path must be a string. Received undefined
               at assertPath (path.js:7:11)
               at Object.dirname (path.js:1324:5)
               at Module._compile (module.js:565:22)
               at requireFromString (/home/huo/workspace/platform/node_modules/yog-log/index.js:637:7)
               at Object.getLogString (/home/huo/workspace/platform/node_modules/yog-log/index.js:424:40)
               at Object.writeLog (/home/huo/workspace/platform/node_modules/yog-log/index.js:365:24)
               at Object.log (/home/huo/workspace/platform/node_modules/yog-log/index.js:142:22)
               at Object.trace (/home/huo/workspace/platform/node_modules/yog-log/index.js:101:25)
               at Object.trace (/home/huo/workspace/platform/node_modules/node-ral/lib/logger.js:54:39)
               at loadFile (/home/huo/workspace/platform/node_modules/node-ral/lib/ralmodule.js:44:20)
[13:34:35] /home/huo/workspace/platform/node_modules/yog-log/index.js:431
                   return LOGGER_CACHE[format](this, util) + '\n';
                                              ^

           TypeError: LOGGER_CACHE[format] is not a function
               at Object.getLogString (/home/huo/workspace/platform/node_modules/yog-log/index.js:431:36)
               at Object.writeLog (/home/huo/workspace/platform/node_modules/yog-log/index.js:365:24)
               at Object.log (/home/huo/workspace/platform/node_modules/yog-log/index.js:142:22)
               at Object.trace (/home/huo/workspace/platform/node_modules/yog-log/index.js:101:25)
               at Object.trace (/home/huo/workspace/platform/node_modules/node-ral/lib/logger.js:54:39)
               at loadFile (/home/huo/workspace/platform/node_modules/node-ral/lib/ralmodule.js:44:20)
               at Array.map (native)
               at RalModule.load (/home/huo/workspace/platform/node_modules/node-ral/lib/ralmodule.js:70:15)
               at Array.map (native)
               at Function.RAL.init (/home/huo/workspace/platform/node_modules/node-ral/lib/ral.js:389:20)

修改yog-log/index.js第424行为LOGGER_CACHE[format] = requireFromString(jsStr,"a");//第二个参数随意
可以正常启动

@hefangshi
Copy link
Member

已处理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants