Max
Max
+1 ``` 生成 工具配置 C:\klzz-project\demo\taroApp\dist/project.config.json 编译 发现入口 src/app.js 编译 发现页面 src/pages/login/login.jsx 编译 发现页面 src/pages/index/index.jsx � 编译失败. ./node_modules/taro-ui/dist/weapp/index.ts Module not found: Can't resolve './style/index.scss' in 'C:\klzz-project\demo\taroApp\node_modules\taro-ui\dist\weapp' 监听文件修改中... ./node_modules/taro-ui/dist/weapp/index.ts Module not found:...
周末空闲时间可能会搞一下
> 使用 data.json 缓存 study... 开始获取课程数据... 33169 - 毕业作业 Unhandled Rejection at: Promise Promise { TypeError: page.waitForTimeout is not a function at getCourseDetail (E:\Git\auto-study\src\getCourseDetail.js:27:14) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async getData...
可能是网站改版或者你的科目和我的不一样,导致页面元素也不一样。
> > 可能是网站改版或者你的科目和我的不一样,导致页面元素也不一样。 > > Unhandled Rejection at: Promise Promise { ProtocolError: Protocol error (Runtime.callFunctionOn): Execution context was destroyed. at /Users/xxx/Downloads/auto-study-master/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230:24 at new Promise () at CDPSession.send (/Users/xxx/Downloads/auto-study-master/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:16) at ExecutionContext._evaluateInternal...
> 请问如何去掉此限制啊 可以自己研究下,反正没几行代码
> 你好,我尝试了您的project,按步骤配置以后,yarn启动后显示: > 开始获取课程数据... > data.json save success > 然后就一直停滞了,弹出的chrome也都不见了 > 而且data.json是空的 > 请问下是哪里有问题呢 信息不足,无法判断你遇到的问题。不过肯定是爬取课程详情遇到了一些问题。每个人课程不一样,不知道是否有不兼容的情况