我不确定 Chrome 发生了什么变化,但 Graphiql GUI 工具没有加载。
在 Firefox 和 Safari 中它工作得很好。我已禁用所有 Chrome 扩展程序,重新启动 Chrome,并重新启动我的 Mac。错误仍然存在。我该如何调试?
在 graphql-workspace.min.js 中出错:
this.state.config.state.proxy || this.state.config.state.headers.forEach(function(e) {
错误:
graphiql-workspace.min.js:1 Uncaught TypeError: Cannot read property 'forEach' of undefined
at t.value (graphiql-workspace.min.js:1)
at t.value (graphiql-workspace.min.js:1)
at t.value (graphiql-workspace.min.js:1)
at t.value (graphiql-workspace.min.js:1)
at performInitialMount (react-dom.min.js:13)
at p.mountComponent (react-dom.min.js:13)
at Object.mountComponent (react-dom.min.js:14)
at mountChildren (react-dom.min.js:14)
at m._createInitialChildren (react-dom.min.js:13)
at mountComponent (react-dom.min.js:13)
不知道为什么headers
未定义。
我正在使用:Elixir、Phoenix、Absinthe、Absinth-Plug、Vue、Vue-Apollo、apollo-boost、graphql、
由于 GUI 似乎是从 CDN 加载的,我想知道这是否是我应该探索的方向。但是,chrome 中的网络选项卡没有显示任何故障。