-
-
Notifications
You must be signed in to change notification settings - Fork 796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose serverless-webpack build errors #191
Expose serverless-webpack build errors #191
Comments
Hi @adambiggs, thanks for raising this issue. I don't know much about sls webpack, I think I know were the error is swallowed. |
A quick solution would be to include |
Thanks @mikestaub that's definitely an improvement. |
Incurred in the same problem, if it can helps anyone, installing the |
When serverless-offline is running and I make code changes, the console output always displays
Webpack rebuilt
, even if the code contains errors and the rebuild failed.Then, instead of a sensible error about my badly formed code, I get a "Cannot find module" error when invoking the function.
I just wasted close to an hour thinking something was wrong with my Webpack module resolution config... I didn't realize what the real problem was until I ran
$ sls webpack
which gave me a nicely formatted error about my badly formed code.Is there a way to expose these error messages when serverless-offline triggers a Webpack rebuild?
The text was updated successfully, but these errors were encountered: