return cy.request('https://webiste.com/config.json').then( (appConfig) => {
  // save to Cypress.config
 });

上面的代码抛出了这个错误:

插件文件导出的函数引发了错误 .

我们调用了'C:\ projects \ nfe-credit-flow \ cypress \ plugins \ index.js'导出的函数,但是它引发了一个错误 .

抛出以下错误:

ReferenceError:在tryCatcher(C:\ projects \ nfe-credit-flow \ node_modules)的Promise.then(C:\ projects \ nfe-credit-flow \ cypress \ plugins \ index.js:74:4)中未定义cy \ bluebird \ js \ release \ util.js:16:23)在Promise的Promise._settlePromiseFromHandler(C:\ projects \ nfe-credit-flow \ node_modules \ bluebird \ js \ release \ promise.js:512:31) . Promise._settlePromise0上的_settlePromise(C:\ projects \ nfe-credit-flow \ node_modules \ bluebird \ js \ release \ promise.js:569:18)(C:\ projects \ nfe-credit-flow \ node_modules \ bluebird \ js \ release \ promise.js:614:10)在Promise._settlePromises(C:\ projects \ nfe-credit-flow \ node_modules \ bluebird \ js \ release \ promise.js:693:18)