-
Notifications
You must be signed in to change notification settings - Fork 416
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
WARNING: More than one matching handlers found for 'handler'. Using 'handler.js'. #405
Comments
Hi @DEX3 , can you check if the directory, that contains the |
Ah yes, I've got You don't happen to know if I that |
Currently you cannot configure the glob. But we could exclude everything like |
But is this glob coming from serverless or from serverless-webpack? |
From sls-webpack. It is the sanity check for the handler detection (e.g. you could have a |
What if you do have ts and js files and you want it to ingore the ts / js.map files? |
@HyperBrain I'm running into the same issue, is there a way I can tell it to ignore my *.test.js files? |
@taschmidt Feel free to open a feature request to add file patterns to a handler lookup exclude list |
This permits you to tell serverless to ignore files that have similar names to the route handlers. So ignore index.test.js or index.ts. This fixes serverless-heaven#433 and serverless-heaven#405 It makes life better for lots of folks :-)
have you able to do ths? |
This is a Bug
Since I've added
serverless-webpack
to my setup, I get the following warnings (everything still works as expected, though):For bug reports:
Additional Data
^5.1.5
^3.8.1
1.27.3
The text was updated successfully, but these errors were encountered: