YMFE / ykit

基于 Webpack 的灵活快速的打包工具,帮助稳定高效构建现代 JavaScript 应用。
https://ykit.ymfe.org/
Apache License 2.0
392 stars 56 forks source link

path.js:39 throw new ERR_INVALID_ARG_TYPE('path', 'string', path); #47

Open xiuxiuing opened 5 years ago

xiuxiuing commented 5 years ago

使用ykit 打包是报错了

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.join (path.js:1155:7) at Object. (/usr/local/lib/node_modules/ykit/lib/global.js:26:28) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) Build step 'Execute shell' marked build as failure Finished: FAILURE

ariesly15 commented 5 years ago

使用ykit 打包是报错了

  • ykit pack -m path.js:39 throw new ERR_INVALID_ARG_TYPE('path', 'string', path); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.join (path.js:1155:7) at Object. (/usr/local/lib/node_modules/ykit/lib/global.js:26:28) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) Build step 'Execute shell' marked build as failure Finished: FAILURE

ykit node npm 都是什么版本的

xiuxiuing commented 5 years ago

node 10.13.0 npm 6.4.1 ykit 0.8.4

ariesly15 commented 5 years ago

node 10.13.0 npm 6.4.1 ykit 0.8.4

试试用 node 8

xiuxiuing commented 5 years ago

我本机的node版本是10.5.0的打包没问题,配置到Jenkins里面执行打包脚本就报上面的错误