aws-sdk-mock icon indicating copy to clipboard operation
aws-sdk-mock copied to clipboard

Error on call to require()

Open dland512 opened this issue 7 years ago • 2 comments

When I include this line in my test:

var AWS = require('aws-sdk-mock');

I get this error:

12 12 2017 20:42:18.283:DEBUG [phantomjs.launcher]: TypeError: undefined is not an object (evaluating 'modules[moduleId].call') 12 12 2017 20:42:18.284:DEBUG [phantomjs.launcher]: http://localhost:9876/base/src/components/abc.test.js?b3ed477b424200c3998436df9179685bd8afc96e:20 in webpack_require :17 in loadDependencies

This is a cordova app running Vue.js. I'm using karma with mocha for my unit tests. It's being bundled by webpack.

I'm using [email protected] .

dland512 avatar Dec 13 '17 02:12 dland512

@dland512 did you solve this problem ?

famaranon avatar Apr 03 '18 13:04 famaranon

No, I never did.

dland512 avatar Apr 03 '18 14:04 dland512