You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the typescript compiler, no warnings / errors. All good. I run the default httpHello function locally with the following command: sls invoke local --function httpHello -p src/tests/mocks/postHelloWorld.json --verbose.
The content of postHelloWorld.json is as follow:
Nothing crazy! I install the express-validator package. I run the typescript compiler, no warnings / errors. I do not change anything from the previous tests.
I run the exact same command: sls invoke local --function httpHello -p src/tests/mocks/postHelloWorld.json --verbose.
But this time webpack stay stuck forever:
...
2023-05-28 16:41:41: webpack 5.84.1 compiled successfully in 329 ms (8958ac2868ea56396deb)
⠏ [Webpack] Building with Webpack ...
And the output of the function never happens.
What am I missing please?
The text was updated successfully, but these errors were encountered:
Hey, I'm trying to understand the following behaviour. Here are the steps to reproduce:
I update the
package.json
to include serverless version 3. Here is the defaultpackage.json
:I run the typescript compiler, no warnings / errors. All good. I run the default
httpHello
function locally with the following command:sls invoke local --function httpHello -p src/tests/mocks/postHelloWorld.json --verbose
.The content of
postHelloWorld.json
is as follow:All good it's very fast:
Now, I update the default
http-hello/handler.ts
as follow, to have some validation layer:And the
libs/http-handler.ts
as follow:Nothing crazy! I install the
express-validator
package. I run the typescript compiler, no warnings / errors.I do not change anything from the previous tests.
I run the exact same command:
sls invoke local --function httpHello -p src/tests/mocks/postHelloWorld.json --verbose
.But this time webpack stay stuck forever:
And the output of the function never happens.
What am I missing please?
The text was updated successfully, but these errors were encountered: