spotify-web-api-node icon indicating copy to clipboard operation
spotify-web-api-node copied to clipboard

require is not a function

Open bennettl opened this issue 4 years ago • 0 comments

Running this with serverless framework and typescript. Got the following error

offline: Failure: require is not a function
TypeError: require is not a function
    at Object../node_modules/formidable/lib/incoming_form.js (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/node_modules/formidable/lib/incoming_form.js:3:1)
    at __webpack_require__ (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/webpack/bootstrap:19:1)
    at Object../node_modules/formidable/lib/index.js (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/node_modules/formidable/lib/index.js:1:20)
    at __webpack_require__ (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/webpack/bootstrap:19:1)
    at Object../node_modules/spotify-web-api-node/node_modules/superagent/lib/node/index.js (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/node_modules/spotify-web-api-node/node_modules/superagent/lib/node/index.js:34:18)
    at __webpack_require__ (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/webpack/bootstrap:19:1)
    at Object../node_modules/spotify-web-api-node/src/http-manager.js (/Users/leebennett/Desktop/Project/MediaKit/Code/serverless-api/connection-service/.webpack/service/src/function/oauth/webpack:/node_modules/spotify-web-api-node/src/http-manager.js:3:18)

bennettl avatar May 30 '21 03:05 bennettl