模块加载报错,好无语啊,求助!!!!!
发布于 2 个月前 作者 RajanZhan 441 次浏览 来自 问答

我直接写绝对路径来加载模块,比如 F:/project/moduleDev/platform/action/actionMap.js,然后就报了这样的错误 module.js:345 request.charCodeAt(0) !== 46/./ || ^

TypeError: request.charCodeAt is not a function at Function.Module._resolveLookupPaths (module.js:345:15) at Function.Module._resolveFilename (module.js:530:20) at Function.resolve (internal/module.js:18:19) at Object.<anonymous> (F:\project\moduleDev\bin\task.js:106:30) at Module._compile (module.js:635:30) at Object.Module._extensions…js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3) at Function.Module.runMain (module.js:676:10)

这是什么鬼???? 求解答

回到顶部