课程
下载APP
源自:-

源码项目运行报错

https://img4.mukewang.com/5d25fe82000127e806690722.jpg

运行老师的源码报错,这怎么解决?

提问者:qq__13273 2019-07-10 23:05

1个回答

  • qq__13273
    2019-07-10 23:06

    Microsoft Windows [版本 6.1.7601]

    版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


    D:\work\myself\wechat\taro\taro-meituan-master>npm run dev:h5


    > MyProject@1.0.0 dev:h5 D:\work\myself\wechat\taro\taro-meituan-master

    > npm run build:h5 -- --watch



    > MyProject@1.0.0 build:h5 D:\work\myself\wechat\taro\taro-meituan-master

    > taro build --type h5 "--watch"


    � Taro v1.3.7


    开始编译项目 MyProject

    创建  发现文件  src\app.js

    创建  发现文件  src\app.less

    创建  发现文件  src\index.html

    创建  发现文件  src\template\template.js

    创建  发现文件  src\utils\common.js

    创建  发现文件  src\utils\events.js

    创建  发现文件  src\assets\img\1.jpg

    创建  发现文件  src\assets\img\2.jpg

    创建  发现文件  src\assets\img\add.png

    创建  发现文件  src\assets\img\back.jpg

    创建  发现文件  src\assets\img\collect.png

    创建  发现文件  src\assets\img\cut.png

    创建  发现文件  src\assets\img\emptystore.png

    创建  发现文件  src\assets\img\foodstore.png

    创建  发现文件  src\assets\img\left.png

    创建  发现文件  src\assets\img\lue.png

    创建  发现文件  src\assets\img\search.png

    创建  发现文件  src\assets\img\store.jpg

    创建  发现文件  src\assets\img\tuan.png

    创建  发现文件  src\components\addcut\addcut.js

    创建  发现文件  src\components\addcut\addcut.less

    创建  发现文件  src\components\bottom\bottom.js

    创建  发现文件  src\components\bottom\bottom.less

    创建  发现文件  src\components\food\cata.js

    创建  发现文件  src\components\food\cata.less

    创建  发现文件  src\components\food\food.js

    创建  发现文件  src\components\food\food.less

    创建  发现文件  src\components\food\foodlist.js

    创建  发现文件  src\components\food\foodlist.less

    创建  发现文件  src\components\head\activity.js

    创建  发现文件  src\components\head\activity.less

    创建  发现文件  src\components\head\head.js

    创建  发现文件  src\components\head\head.less

    创建  发现文件  src\components\head\top.js

    创建  发现文件  src\components\head\top.less

    创建  发现文件  src\pages\index\child.js

    创建  发现文件  src\pages\index\index.js

    创建  发现文件  src\pages\index\index.less

    (node:4184) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'u

    glify' of undefined

        at Object.default_1 [as default] (D:\work\myself\wechat\taro\taro-meituan-ma

    ster\node_modules\_@tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\conf

    ig\dll.conf.js:20:38)

        at Promise (D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@ta

    rojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:43:48)

        at new Promise (<anonymous>)

        at Object.<anonymous> (D:\work\myself\wechat\taro\taro-meituan-master\node_m

    odules\_@tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:42:12)


        at Generator.next (<anonymous>)

        at D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@tarojs_webp

    ack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:7:71

        at new Promise (<anonymous>)

        at __awaiter (D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@

    tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:3:12)

        at buildDll (D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@t

    arojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:39:30)

        at Object.<anonymous> (D:\work\myself\wechat\taro\taro-meituan-master\node_m

    odules\_@tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:127:15

    )

        at Generator.next (<anonymous>)

        at D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@tarojs_webp

    ack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:7:71

        at new Promise (<anonymous>)

        at __awaiter (D:\work\myself\wechat\taro\taro-meituan-master\node_modules\_@

    tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:3:12)

        at exports.default (D:\work\myself\wechat\taro\taro-meituan-master\node_modu

    les\_@tarojs_webpack-runner@1.2.0@@tarojs\webpack-runner\dist\index.js:122:31)

        at Compiler.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_mod

    ules\@tarojs\cli\dist\h5\index.js:163:13)

    (node:4184) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This

    error originated either by throwing inside of an async function without a catch

    block, or by rejecting a promise which was not handled with .catch(). (rejection

     id: 2)

    (node:4184) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre

    cated. In the future, promise rejections that are not handled will terminate the

     Node.js process with a non-zero exit code.