JianChao Ye
JianChao Ye
@Dushusir 你好, 预计什么时候可以完成重写?
@PRR24 Unexpectedly, I failed to reproduce the problem you described. Can you provide me with a test? Maybe I can fix this problem
@PRR24 If you install exceljs from NPM, I can reproduce your problem. If you clone the exceljs repository, this error does not exist (I wrote the test), so I think...
@PRR24 # For this issue, I have tried various tests. All the tests can pass. 
@mosinnik Do you have any test cases?
@jamespatriot 如果单纯为了跨域,可以写一个全局中间件解决,或许这个方案对你有用! ---- cors 全局中间件sample: - 文件 `src\middleware\cors.ts` ```typescript // src\middleware\cors.ts import { Provide } from '@midwayjs/decorator'; import { IWebMiddleware, IMidwayWebNext } from '@midwayjs/web'; import { Context } from 'egg';...
@czy88840616 我在安装 `egg-cors` 报错了,以下是错误详情: ```shell E:\workSpace\demos\midway-web-demo>npm install --save egg-cors npm WARN ERESOLVE overriding peer dependency npm WARN ERESOLVE overriding peer dependency npm WARN While resolving: [email protected] npm WARN Found: [email protected]...
@czy88840616 感谢老哥! 使用 `npm i xxx --force` 不知道怎么回事依然报错,我重新删掉了 `node_modules` ,再重新 `npm install`,安装 `egg-cors` 没报错了!
@czy88840616 关于提示跨域的这个错误可以复现(我试过了这个issue中提到的解决方案, 但是都失败了),也许是 `egg-cors` 一个bug. 我去看了一下, `egg-cors` 是不再维护了吗?
@czy88840616 了解!