Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

Error when building with webpack #261

Open rafaelcorreiapoli opened 7 years ago

rafaelcorreiapoli commented 7 years ago

Hi! I'm trying to build a project using webpack and I'm getting this error:

Error: define cannot be used indirect
W20160901-21:59:31.009(-3)? (STDERR)     at Object.module.exports [as define] (webpack:///(webpack)/buildin/amd-define.js:1:1)
W20160901-21:59:31.009(-3)? (STDERR)     at Object.<anonymous> (webpack:///~/json-schema/lib/validate.js:20:1)
W20160901-21:59:31.010(-3)? (STDERR)     at __webpack_require__ (webpack:/webpack/bootstrap 3a9c6425439f5dbac448:22:1)
W20160901-21:59:31.010(-3)? (STDERR)     at Object.<anonymous> (webpack:///~/jsprim/lib/jsprim.js:13:1)
W20160901-21:59:31.010(-3)? (STDERR)     at __webpack_require__ (webpack:/webpack/bootstrap 3a9c6425439f5dbac448:22:1)
W20160901-21:59:31.010(-3)? (STDERR)     at Object.<anonymous> (webpack:///~/http-signature/lib/signer.js:11:1)
W20160901-21:59:31.010(-3)? (STDERR)     at __webpack_require__ (webpack:/webpack/bootstrap 3a9c6425439f5dbac448:22:1)
W20160901-21:59:31.010(-3)? (STDERR)     at Object.<anonymous> (webpack:///~/http-signature/lib/index.js:7:1)
W20160901-21:59:31.011(-3)? (STDERR)     at __webpack_require__ (webpack:/webpack/bootstrap 3a9c6425439f5dbac448:22:1)
W20160901-21:59:31.011(-3)? (STDERR)     at Object.<anonymous> (webpack:///~/pokemon-go-node-api/~/request/request.js:1

Do you have any idea on what is happening? I think there is something to do with request version but I forked this and used another request version and it didn't worked https://github.com/request/request/issues/1920