bhushankummar / amazon-mws

Amazon MWS NodeJS Wrapper
MIT License
197 stars 78 forks source link

Webpack Error #93

Closed dbuddhadev closed 5 years ago

dbuddhadev commented 5 years ago

TypeError: __webpack_require__(...).createServer is not a function

./node_modules/amazon-mws/lib/amazon-mws.js/< C:/Users/dbudd/OneDrive - inc/Development/mws-test/node_modules/amazon-mws/lib/amazon-mws.js:9

6 | AmazonMws.DEFAULT_RESPONSE_FORMAT = 'JSON'; 7 | AmazonMws.DEFAULT_API_VERSION = null; // Use node's default timeout: 8 |

9 | AmazonMws.DEFAULT_TIMEOUT = require('http').createServer().timeout; 10 | AmazonMws.PACKAGE_VERSION = require('../package.json').version; 11 | AmazonMws.USER_AGENT = { 12 | bindings_version: AmazonMws.PACKAGE_VERSION,

bhushankummar commented 5 years ago

@dbuddhadev We are not facing the same error on any Node version. Can you add sample code and more details about specific NodeJs version?