The signer currently can't be deployed by sls deploy due to a webpack compilation error:
sls deploy
Serverless: Bundling with Webpack...
Time: 35145ms
Built at: 08/09/2020 3:46:43 PM
Asset Size Chunks Chunk Names
handler.js 7.82 MiB 0 handler
handler.js.map 8.13 MiB 0 [dev] handler
Entrypoint handler = handler.js handler.js.map
[2] external "crypto" 42 bytes {0} [built]
[25] ./node_modules/tezos-oracle-lib/node_modules/conseiljs/dist/index.js 2.19 KiB {0} [built]
[38] ./node_modules/tezos-oracle-lib/build/src/utils.js 5.58 KiB {0} [built]
[50] ./node_modules/tezos-oracle-lib/build/src/common.js 327 bytes {0} [built]
[54] ./node_modules/tezos-oracle-lib/build/src/index.js 2.77 KiB {0} [built]
[102] ./node_modules/tezos-oracle-lib/build/src/asn1.js 373 bytes {0} [built]
[103] ./node_modules/web-request/index.js 6.68 KiB {0} [built]
[126] ./src/http-response-code.ts 351 bytes {0} [built]
[127] ./node_modules/conseiljs/dist/types/tezos/TezosChainTypes.js 1.21 KiB {0} [built]
[128] ./node_modules/conseiljs/dist/chain/tezos/TezosMessageUtil.js 17.2 KiB {0} [built]
[218] ./handler.ts 4.26 KiB {0} [built] [7 errors]
[219] ./src/oracle-service.ts 2.94 KiB {0} [built]
[1282] ./src/aws-signer.ts 952 bytes {0} [built]
[1283] ./src/binance-candle-provider.ts 2.82 KiB {0} [built]
[1284] ./src/coinbase-candle-provider.ts 4.07 KiB {0} [built]
+ 1270 hidden modules
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(1,40)
TS7016: Could not find a declaration file for module 'aws-lambda'. '/Users/luke/tacoinfra/harbinger-signer/node_modules/aws-lambda/lib/main.js' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(11,54)
TS7006: Parameter '_event' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(11,62)
TS7006: Parameter '_context' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(31,54)
TS7006: Parameter '_event' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(31,62)
TS7006: Parameter '_context' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(51,52)
TS7006: Parameter '_event' implicitly has an 'any' type.
ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts
./handler.ts
[tsl] ERROR in /Users/luke/tacoinfra/harbinger-signer/handler.ts(51,60)
TS7006: Parameter '_context' implicitly has an 'any' type.
Error --------------------------------------------------
Error: Webpack compilation error, see above
at /Users/luke/tacoinfra/harbinger-signer/node_modules/serverless-webpack/lib/compile.js:36:17
at arrayEach (/Users/luke/tacoinfra/harbinger-signer/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/Users/luke/tacoinfra/harbinger-signer/node_modules/lodash/lodash.js:9368:14)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/serverless-webpack/lib/compile.js:29:9
at tryCatcher (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/nodeback.js:42:21
at finalCallback (/Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compiler.js:257:39)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compiler.js:273:13
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/Hook.js:154:20)
at onCompiled (/Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compiler.js:271:21)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compiler.js:681:15
at eval (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/ts-loader/dist/after-compile.js:37:9
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:7:1)
at AsyncSeriesHook.lazyCompileHook (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/Hook.js:154:20)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compiler.js:678:31
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/Hook.js:154:20)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compilation.js:1423:35
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/Hook.js:154:20)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/webpack/lib/Compilation.js:1414:32
at eval (eval at create (/Users/luke/tacoinfra/harbinger-signer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/terser-webpack-plugin/dist/index.js:321:9
at step (/Users/luke/tacoinfra/harbinger-signer/node_modules/terser-webpack-plugin/dist/TaskRunner.js:87:9)
at done (/Users/luke/tacoinfra/harbinger-signer/node_modules/terser-webpack-plugin/dist/TaskRunner.js:98:30)
at tryCatcher (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at Promise._resolveCallback (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:466:57)
at Promise._settlePromiseFromHandler (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:559:17)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at Promise._resolveCallback (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:466:57)
at Promise._settlePromiseFromHandler (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:559:17)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:617:21)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at Promise._resolveCallback (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:489:14)
at Promise._settlePromiseFromHandler (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:559:17)
at Promise._settlePromise (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:729:18)
at Promise._fulfill (/Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/promise.js:673:18)
at /Users/luke/tacoinfra/harbinger-signer/node_modules/bluebird/js/release/nodeback.js:42:21
at /Users/luke/tacoinfra/harbinger-signer/node_modules/graceful-fs/graceful-fs.js:166:16
at /usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:166:16
at /usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:144:16
at /usr/local/lib/node_modules/serverless/node_modules/graceful-fs/graceful-fs.js:61:14
at FSReqCallback.oncomplete (fs.js:164:23)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 14.6.0
Framework Version: 1.78.1
Plugin Version: 3.7.0
SDK Version: 2.3.1
Components Version: 2.34.1
The signer currently can't be deployed by
sls deploy
due to a webpack compilation error: