taro编译的报错信息太不友好了



  • 报错信息完全定位不到错误出在哪里,猜测是某个路径错误或者是有组件没有import进来,可是那么多文件一个一个找实在太费劲了,看日志也没有有用信息
    � 编译失败.

    The "path" argument must be of type string. Received type object

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! 51dongshi-taro@1.0.0 build:swan: taro build --type swan
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the 51dongshi-taro@1.0.0 build:swan script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2021-01-28T05_24_55_098Z-debug.log


登录后回复