h5监听修改文件,修改了文件就报错,需要重新启动,是什么问题呢



  • fs.js:115
    throw err;
    ^

    Error: ENOENT: no such file or directory, open 'D:\wine\IdeaProject\znp-weapp-newnp\src\pages\school-order-transport\transportList.js___jb_tmp___'
    at Object.openSync (fs.js:436:3)
    at Object.readFileSync (fs.js:341:35)
    at Compiler.processFiles (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\dist\h5\index.js:975:25)
    at FSWatcher.watcher.on.filePath (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\dist\h5\index.js:168:18)
    at FSWatcher.emit (events.js:182:13)
    at FSWatcher.<anonymous> (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\chokidar\index.js:199:15)
    at FSWatcher._emit (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\chokidar\index.js:241:5)
    at FSWatcher.NodeFsHandler._handleFile (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\chokidar\lib\nodefs-handler.js:294:10)
    at FSWatcher.<anonymous> (C:\Users\Newgain\AppData\Roaming\npm\node_modules@tarojs\cli\node_modules\chokidar\lib\nodefs-handler.js:495:21)
    at FSReqWrap.oncomplete (fs.js:155:5)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! taro-weapp@1.0.0 build:h5: taro build --type h5 "--watch"
    npm ERR! Exit status 1


登录后回复