编译的时候会出现:
err: TypeError: adapter is not a function at dispatchRequest (/Users/gming001/Code/wuhan2020/wuhan2020.github.io/node_modules/gitalk/dist/webpack:/node_modules/axios/lib/core/dispatchRequest.js:52:1) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
说明
使用一些hard code的方式去修复build过程的报错问题。
已知的问题
目前存在已知的问题如下:
err: TypeError: adapter is not a function at dispatchRequest (/Users/gming001/Code/wuhan2020/wuhan2020.github.io/node_modules/gitalk/dist/webpack:/node_modules/axios/lib/core/dispatchRequest.js:52:1) at process._tickCallback (internal/process/next_tick.js:68:7) at Function.Module.runMain (internal/modules/cjs/loader.js:834:11) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
BreakChange
deploy的时候使用yarn而不是npm。