我試圖用內實習生sinon-chai plugin,但它給了我:呼叫柴插件返回錯誤
Error {stack: (...), message: "Cannot find the Node.js require"}
我已經安裝了通過NPM插件,這裏是我的測試文件:
define([
'intern!bdd',
'intern/chai!expect',
'app/functions',
'intern/chai',
'intern/dojo/node!sinon-chai'
], function (bdd, expect, myapp, chai, sinonChai) {
chai.use(sinonChai);
...
});
什麼可能會出錯?
你browerified呢? – Vinz243 2014-09-23 14:18:14