Undefined不是函数Intern Js

时间:2015-08-09 17:51:48

标签: intern

嗨朋友我刚刚设置了Intern Js,当我试图运行功能测试时它给了我下面提到的错误:

Listening on 0.0.0.0:9000
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
Transformation error; return original code
[TypeError: undefined is not a function]
ReferenceError: __cov_VQFOzwnac8hdvD0fpGS2FQ is not defined
  at Object.<anonymous>  </Users/rmiglani/Downloads/intern-tutorial-master/internjs/node_modules/intern/node_modules/istanbul/node_modules/escodegen/node_modules/source-map/lib/source-map/source-node.js:5:0>
  at Module._compile  <module.js:460:26>
  at Object.Module._extensions.(anonymous function) [as .js]  <internjs/node_modules/intern/node_modules/istanbul/lib/hook.js:107:24>
  at Module.load  <module.js:355:32>
  at Function.Module._load  <module.js:310:12>
  at Module.require  <module.js:365:17>
  at require  <module.js:384:17>
  at Object.load  <internjs/node_modules/intern/node_modules/dojo/node.ts:56:11>
  at injectPlugin  <internjs/node_modules/intern/node_modules/dojo/loader.ts:711:6>
  at injectModule  <internjs/node_modules/intern/node_modules/dojo/loader.ts:733:3>

请帮我解决这个问题,请让我知道我在哪里可以犯错误

1 个答案:

答案 0 :(得分:1)

Intern正试图将伊斯坦布尔的报道报告映射回源代码,但未能这样做。如果没有看到您的Intern配置文件,很难诊断您的确切问题,但我猜您错过了excludeInstrumentation选项。如果您的配置中实际上缺少该选项,我建议您使用example config

中提供的值