Last active
December 17, 2019 06:50
-
-
Save cavaliercoder/43e7201db3d7050c554ef40e13d3b508 to your computer and use it in GitHub Desktop.
tswtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(node:46031) UnhandledPromiseRejectionWarning: NetworkingError: XMLHttpRequest is not defined | |
at t.constructor.t.constructor.handleRequest (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:209257) | |
at s (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:102022) | |
at constructor.<anonymous> (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:102421) | |
at constructor.callListeners (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:58229) | |
at constructor.emit (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:57968) | |
at constructor.emitEvent (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:125361) | |
at constructor.e (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:120912) | |
at r.runTo (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:127221) | |
at /Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:127427 | |
at constructor.<anonymous> (/Users/rarmstrong/Development/volley/node/lambda/api/dist/index.js:8:121182) | |
(node:46031) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a | |
promise which was not handled with .catch(). (rejection id: 1) | |
(node:46031) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a | |
non-zero exit code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "ES2019", | |
"module": "commonjs", | |
"sourceMap": true, | |
"outDir": "./dist/", | |
"rootDir": "./src", | |
"strict": true, | |
"noImplicitAny": true, | |
"baseUrl": "./src", | |
"esModuleInterop": true, | |
"forceConsistentCasingInFileNames": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const defaults = { | |
mode: "production", | |
devtool: 'inline-source-map', | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
use: 'ts-loader', | |
exclude: [ /node_modules/ ] | |
}, | |
], | |
}, | |
}; | |
const api_lambda = { | |
...defaults, | |
target: 'node', | |
entry: './src/api-lambda/index.ts', | |
output: { | |
filename: 'index.js', | |
path: path.resolve(__dirname, 'dist/api-lambda'), | |
libraryTarget: 'commonjs' | |
} | |
}; | |
module.exports = [ api_lambda ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment