Ant-design-pro: 打包出错:Invalid data, chunk must be a string or buffer, not undefined

Created on 30 Aug 2018  ·  3Comments  ·  Source: ant-design/ant-design-pro

TypeError: Invalid data, chunk must be a string or buffer, not undefined
    at Socket.write (net.js:701:11)
    at nodeDeprecate (/home/node/code/node_modules/[email protected]@deprecate/index.js:22:22)
    at deprecate (/home/node/code/node_modules/[email protected]@deprecate/index.js:11:3)
    at Object.<anonymous> (/home/node/code/node_modules/[email protected]@af-webpack/lib/getConfig.js:81:26)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/node/code/node_modules/[email protected]@af-webpack/getConfig.js:1:18)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)

Most helpful comment

package.json中DISABLE_ESLINT=true 修改为 ESLINT=none 话说打包的时候应该有提示要废弃的。。。

All 3 comments

Translation of this issue:


Packaging error: Invalid data, chunk must be a string or buffer, not undefined

TypeError: Invalid data, chunk must be a string or buffer, not undefined
    At Socket.write (net.js:701:11)
    At nodeDeprecate (/home/node/code/node_modules/[email protected]@deprecate/index.js:22:22)
    At deprecate (/home/node/code/node_modules/[email protected]@deprecate/index.js:11:3)
    At Object.<anonymous> (/home/node/code/node_modules/[email protected]@af-webpack/lib/getConfig.js:81:26)
    At Module._compile (module.js:643:30)
    At Object.Module._extensions..js (module.js:654:10)
    At Module.load (module.js:556:32)
    At tryModuleLoad (module.js:499:12)
    At Function.Module._load (module.js:491:3)
    At Module.require (module.js:587:17)
    At require (internal/module.js:11:18)
    At Object.<anonymous> (/home/node/code/node_modules/[email protected]@af-webpack/getConfig.js:1:18)
    At Module._compile (module.js:643:30)
    At Object.Module._extensions..js (module.js:654:10)
    At Module.load (module.js:556:32)
    At tryModuleLoad (module.js:499:12)

package.json中DISABLE_ESLINT=true 修改为 ESLINT=none 话说打包的时候应该有提示要废弃的。。。

@wangweida 确实是 DISABLE_ESLINT 的问题,我是写在 环境变量 里的,you save my life ^o^

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renyi818 picture renyi818  ·  3Comments

zhuanglong picture zhuanglong  ·  3Comments

Jerry-goodboy picture Jerry-goodboy  ·  3Comments

lvzheng0404 picture lvzheng0404  ·  3Comments

gaoqiang19514 picture gaoqiang19514  ·  3Comments